Skip to content

Commit

Permalink
Add new option to readme and fix flake8 error
Browse files Browse the repository at this point in the history
Line length to long for help and add command line help with
--modified-files to README
  • Loading branch information
Svenito committed Mar 5, 2024
1 parent f68ba0a commit 1712f4f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,9 @@ The following `command line arguments`_ can also be used to modify the defaults:
should be supported by Black's output. [default: per-file auto-detection]
-W WORKERS, --workers WORKERS
How many parallel workers to allow, or ``0`` for one per core [default: 1]
-m, --modified-only
Only consider files with modified content for checking. Skip moved or renamed
files.

To change default values for these options for a given project,
add a ``[tool.darker]`` or ``[tool.black]`` section to ``pyproject.toml`` in the
Expand Down
5 changes: 4 additions & 1 deletion src/darker/help.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,4 +147,7 @@ def get_extra_instruction(dependency: str) -> str:

WORKERS = "How many parallel workers to allow, or `0` for one per core [default: 1]"

MODIFIED_ONLY = "Only consider files with modified content for checking. Skip moved or renamed files."
MODIFIED_ONLY = (
"Only consider files with modified content for checking."
" Skip moved or renamed files."
)

0 comments on commit 1712f4f

Please sign in to comment.