Skip to content

Commit

Permalink
A fix to darkgraylib requires version for argparser
Browse files Browse the repository at this point in the history
the argparser in the darkgraylib was using the library version instead
of the version of the module calling it
  • Loading branch information
Svenito authored and akaihola committed Jul 29, 2024
1 parent 7b10466 commit 93e813f
Showing 1 changed file with 2 additions and 0 deletions.
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 93e813f

Please sign in to comment.