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 committed May 20, 2024
1 parent 0fcbba3 commit 454ef79
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 @@ -7,6 +7,7 @@

from black import TargetVersion

from darker.version import __version__
import darkgraylib.command_line
from darker import help as hlp
from darker.config import DEPRECATED_CONFIG_OPTIONS, DarkerConfig, OutputMode
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 454ef79

Please sign in to comment.