mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-04-15 18:11:48 +04:00
Fix precommit issues again
This commit is contained in:
parent
0d40562dcb
commit
c8caca7eae
2 changed files with 7 additions and 2 deletions
|
|
@ -58,8 +58,12 @@ def _add_hook_type_option(parser: argparse.ArgumentParser) -> None:
|
||||||
|
|
||||||
def _add_run_options(parser: argparse.ArgumentParser) -> None:
|
def _add_run_options(parser: argparse.ArgumentParser) -> None:
|
||||||
hooks_mutex_group = parser.add_mutually_exclusive_group(required=False)
|
hooks_mutex_group = parser.add_mutually_exclusive_group(required=False)
|
||||||
hooks_mutex_group.add_argument('hook', nargs='?', help='A single hook-id to run')
|
hooks_mutex_group.add_argument(
|
||||||
hooks_mutex_group.add_argument('--tags', nargs='+', default=[], help='Tag groups to run')
|
'hook', nargs='?', help='A single hook-id to run',
|
||||||
|
)
|
||||||
|
hooks_mutex_group.add_argument(
|
||||||
|
'--tags', nargs='+', default=[], help='Tag groups to run',
|
||||||
|
)
|
||||||
parser.add_argument('--verbose', '-v', action='store_true', default=False)
|
parser.add_argument('--verbose', '-v', action='store_true', default=False)
|
||||||
mutex_group = parser.add_mutually_exclusive_group(required=False)
|
mutex_group = parser.add_mutually_exclusive_group(required=False)
|
||||||
mutex_group.add_argument(
|
mutex_group.add_argument(
|
||||||
|
|
|
||||||
|
|
@ -1015,6 +1015,7 @@ def test_manifest_hooks(tempdir_factory, store):
|
||||||
'post-commit', 'manual', 'post-checkout', 'push', 'post-merge',
|
'post-commit', 'manual', 'post-checkout', 'push', 'post-merge',
|
||||||
'post-rewrite',
|
'post-rewrite',
|
||||||
),
|
),
|
||||||
|
tags=['foo'],
|
||||||
types=['file'],
|
types=['file'],
|
||||||
types_or=[],
|
types_or=[],
|
||||||
verbose=False,
|
verbose=False,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue