Skip to content

Commit b96127c

Browse files
authored
Merge pull request #3536 from pre-commit/store-true-default
store_true does not need default=...
2 parents 954cc3b + e671830 commit b96127c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pre_commit/main.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,10 @@ def _add_hook_type_option(parser: argparse.ArgumentParser) -> None:
6262

6363
def _add_run_options(parser: argparse.ArgumentParser) -> None:
6464
parser.add_argument('hook', nargs='?', help='A single hook-id to run')
65-
parser.add_argument('--verbose', '-v', action='store_true', default=False)
65+
parser.add_argument('--verbose', '-v', action='store_true')
6666
mutex_group = parser.add_mutually_exclusive_group(required=False)
6767
mutex_group.add_argument(
68-
'--all-files', '-a', action='store_true', default=False,
68+
'--all-files', '-a', action='store_true',
6969
help='Run on all the files in the repo.',
7070
)
7171
mutex_group.add_argument(
@@ -279,7 +279,7 @@ def _add_cmd(name: str, *, help: str) -> argparse.ArgumentParser:
279279
)
280280
_add_hook_type_option(install_parser)
281281
install_parser.add_argument(
282-
'--allow-missing-config', action='store_true', default=False,
282+
'--allow-missing-config', action='store_true',
283283
help=(
284284
'Whether to allow a missing `pre-commit` configuration file '
285285
'or exit with a failure code.'

0 commit comments

Comments
 (0)