From e24145933702609d2eca30ff1be3cc39becf6366 Mon Sep 17 00:00:00 2001 From: Roman Kitaev Date: Thu, 17 Oct 2024 10:45:22 +0300 Subject: [PATCH] fix ignoring pyproject.toml config --- mypy_baseline/_config.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mypy_baseline/_config.py b/mypy_baseline/_config.py index 9800d6b..3e95376 100644 --- a/mypy_baseline/_config.py +++ b/mypy_baseline/_config.py @@ -62,23 +62,23 @@ def init_parser(self, parser: ArgumentParser) -> None: ) add( - '--allow-unsynced', action='store_true', + '--allow-unsynced', action='store_const', const=True, help='do not fail for resolved violations.' ) add( - '--preserve-position', action='store_true', + '--preserve-position', action='store_const', const=True, help='do not remove line number from the baseline.', ) add( - '--sort-baseline', action='store_true', + '--sort-baseline', action='store_const', const=True, help='sort the baseline file.', ) add( - '--hide-stats', action='store_true', + '--hide-stats', action='store_const', const=True, help='do not show stats at the end.', ) add( - '--no-colors', action='store_true', + '--no-colors', action='store_const', const=True, help='disable colored output. Has no effect on the output of mypy.', ) add(