Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Antti Kaihola <13725+akaihola@users.noreply.github.com>
  • Loading branch information
tehunter and akaihola authored Aug 1, 2024
1 parent 1c8dd01 commit 289f79a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
3 changes: 2 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ These features will be included in the next release:

Added
-----
- The `--preview` configuration flag is now supported in Darker CLI and Block
- The ``--preview`` configuration flag is now supported in the configuration file for
Darker and Black
configuration file.

Fixed
Expand Down
3 changes: 2 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,8 @@ The following `command line arguments`_ can also be used to modify the defaults:
[py33\|py34\|py35\|py36\|py37\|py38\|py39\|py310\|py311\|py312] Python versions
that should be supported by Black's output. [default: per-file auto-detection]
--preview
Use black's preview future code style
In Black, enable potentially disruptive style changes that may be added to
Black in the future

To change default values for these options for a given project,
add a ``[tool.darker]`` section to ``pyproject.toml`` in the project's root directory,
Expand Down
2 changes: 0 additions & 2 deletions contributors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,6 @@ talhajunaidd:
- {link_type: commits, type: Code}
tapted:
- {link_type: issues, type: Bug reports}
tehunter:
- {link_type: pulls-author, type: Code}
tgross35:
- {link_type: issues, type: Bug reports}
tkolleh:
Expand Down
5 changes: 4 additions & 1 deletion src/darker/help.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,10 @@ def get_extra_instruction(dependency: str) -> str:
" `skip-magic-trailing-comma = true` from a Black configuration file."
)

PREVIEW = "Use Black's experimental preview style"
PREVIEW = (
"In Black, enable potentially disruptive style changes that may be added to Black"
" in the future"
)

LINE_LENGTH = "How many characters per line to allow [default: 88]"

Expand Down

0 comments on commit 289f79a

Please sign in to comment.