mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-07 04:26:52 +00:00
Add a new hook to forbid new submodules
This commit is contained in:
parent
7539d8bd1a
commit
70e405ede2
7 changed files with 75 additions and 5 deletions
|
|
@ -6,7 +6,6 @@ from __future__ import unicode_literals
|
|||
import argparse
|
||||
import math
|
||||
import os
|
||||
import sys
|
||||
|
||||
from pre_commit_hooks.util import added_files
|
||||
from pre_commit_hooks.util import CalledProcessError
|
||||
|
|
@ -49,8 +48,6 @@ def find_large_added_files(filenames, maxkb):
|
|||
|
||||
|
||||
def main(argv=None):
|
||||
argv = argv if argv is not None else sys.argv[1:]
|
||||
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument(
|
||||
'filenames', nargs='*',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue