mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2025-08-15 01:54:44 +08:00
Upgrade add-trailing-comma to 0.4.1
This commit is contained in:
@ -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))
|
||||
|
Reference in New Issue
Block a user