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 committed Aug 27, 2024
1 parent 87b30ed commit 62fab63
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ Added
- Display exit code in parentheses after error message.
- Do not reformat renamed files.
- CI workflow to post recent project activity in a discussion. Triggered manually.
- The `--preview` configuration flag is now supported in Darker CLI and Black
configuration files.
- The ``--preview`` configuration flag is now supported in the configuration files for
Darker and Black

Fixed
-----
Expand Down
3 changes: 2 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,8 @@ The following `command line arguments`_ can also be used to modify the defaults:
-i, --isort
Also sort imports using the ``isort`` package
--preview
Use Black's experimental preview style
In Black, enable potentially disruptive style changes that may be added to Black
in the future
-L CMD, --lint CMD
Run a linter on changed files. ``CMD`` can be a name or path of the linter
binary, or a full quoted command line with the command and options. Linters read
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 62fab63

Please sign in to comment.