Skip to content

Commit

Permalink
Merge pull request #588 from Svenito/show-darker-version
Browse files Browse the repository at this point in the history
A fix for darkgraylib requiring version for argparser
  • Loading branch information
akaihola authored Jul 29, 2024
2 parents 7b10466 + 52648fb commit f5f3fe7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,12 @@ Added
Fixed
-----
- Update ``darkgray-dev-tools`` for Pip >= 24.1 compatibility.
- Update to Darkgraylib 1.3.1 to fix the configuration dump and the output of
``--version`` (see below).
- In the configuration dump printed when ``-vv`` verbosity is used, the configuration
section is now correctly named ``[tool.darker]`` instead of ``[tool.darkgraylib]``.
This required an update to Darkgraylib 1.3.0.
- Pass Graylint version to `~darkgraylib.command_line.make_argument_parser` to make
``--version`` display the correct version number.


2.1.1_ - 2024-04-16
Expand Down
2 changes: 2 additions & 0 deletions src/darker/command_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import darkgraylib.command_line
from darker import help as hlp
from darker.config import DEPRECATED_CONFIG_OPTIONS, DarkerConfig, OutputMode
from darker.version import __version__
from darkgraylib.command_line import add_parser_argument
from graylint.command_line import add_lint_arg

Expand All @@ -28,6 +29,7 @@ def make_argument_parser(require_src: bool) -> ArgumentParser:
"Make `darker`, `black` and `isort` read configuration from `PATH`. Note that"
" other tools like `flynt`, `mypy`, `pylint` or `flake8` won't use this"
" configuration file.",
__version__,
)

add_arg = partial(add_parser_argument, parser)
Expand Down

0 comments on commit f5f3fe7

Please sign in to comment.