mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-04-15 18:11:48 +04:00
Attempt to add a mechanism for tagging hooks
This commit is contained in:
parent
1f59f4cba8
commit
189490a938
8 changed files with 67 additions and 8 deletions
|
|
@ -67,6 +67,7 @@ def run_opts(
|
|||
color=False,
|
||||
verbose=False,
|
||||
hook=None,
|
||||
tags=(),
|
||||
remote_branch='',
|
||||
local_branch='',
|
||||
from_ref='',
|
||||
|
|
@ -84,12 +85,14 @@ def run_opts(
|
|||
):
|
||||
# These are mutually exclusive
|
||||
assert not (all_files and files)
|
||||
assert not (hook and tags)
|
||||
return auto_namedtuple(
|
||||
all_files=all_files,
|
||||
files=files,
|
||||
color=color,
|
||||
verbose=verbose,
|
||||
hook=hook,
|
||||
tags=tags,
|
||||
remote_branch=remote_branch,
|
||||
local_branch=local_branch,
|
||||
from_ref=from_ref,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue