Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A fix for darkgraylib requiring version for argparser #588

Merged
merged 2 commits into from
Jul 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading