mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-09 12:54:17 +00:00
syntax
This commit is contained in:
parent
39bba8ecb2
commit
5f423bee31
1 changed files with 2 additions and 2 deletions
|
|
@ -33,8 +33,8 @@ def filter_lfs_files(filenames: set[str]) -> None: # pragma: no cover (lfs)
|
||||||
def find_large_added_files(
|
def find_large_added_files(
|
||||||
filenames: Sequence[str],
|
filenames: Sequence[str],
|
||||||
maxkb: int,
|
maxkb: int,
|
||||||
allow_in_lfs: bool,
|
|
||||||
*,
|
*,
|
||||||
|
allow_in_lfs: bool = True,
|
||||||
enforce_all: bool = False,
|
enforce_all: bool = False,
|
||||||
) -> int:
|
) -> int:
|
||||||
# Find all added files that are also in the list of files pre-commit tells
|
# Find all added files that are also in the list of files pre-commit tells
|
||||||
|
|
@ -80,7 +80,7 @@ def main(argv: Sequence[str] | None = None) -> int:
|
||||||
return find_large_added_files(
|
return find_large_added_files(
|
||||||
args.filenames,
|
args.filenames,
|
||||||
args.maxkb,
|
args.maxkb,
|
||||||
args.allow_in_lfs,
|
allow_in_lfs=args.allow_in_lfs,
|
||||||
enforce_all=args.enforce_all,
|
enforce_all=args.enforce_all,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue