From 454ef79cbe7a221004cb0a16b9edfda709c8e40e Mon Sep 17 00:00:00 2001 From: Sven Steinbauer Date: Mon, 20 May 2024 17:24:17 +0100 Subject: [PATCH] A fix to darkgraylib requires version for argparser the argparser in the darkgraylib was using the library version instead of the version of the module calling it --- src/darker/command_line.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/darker/command_line.py b/src/darker/command_line.py index 8cd63f036..46e2e2533 100644 --- a/src/darker/command_line.py +++ b/src/darker/command_line.py @@ -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 @@ -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)