mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-05 03:26:53 +00:00
Upgrade add-trailing-comma to 0.4.1
This commit is contained in:
parent
ea227f024b
commit
e9aea74a77
11 changed files with 94 additions and 63 deletions
|
|
@ -15,7 +15,8 @@ def is_on_branch(protected):
|
|||
def main(argv=[]):
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument(
|
||||
'-b', '--branch', default='master', help='branch to disallow commits to')
|
||||
'-b', '--branch', default='master', help='branch to disallow commits to',
|
||||
)
|
||||
args = parser.parse_args(argv)
|
||||
|
||||
return int(is_on_branch(args.branch))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue