From 5f423bee3145c5f97f1057e0ec304e24bda3a013 Mon Sep 17 00:00:00 2001 From: Adam Zethraeus Date: Fri, 10 Jun 2022 00:20:18 -0700 Subject: [PATCH] syntax --- pre_commit_hooks/check_added_large_files.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pre_commit_hooks/check_added_large_files.py b/pre_commit_hooks/check_added_large_files.py index 1b3c768..3b2cd33 100644 --- a/pre_commit_hooks/check_added_large_files.py +++ b/pre_commit_hooks/check_added_large_files.py @@ -33,8 +33,8 @@ def filter_lfs_files(filenames: set[str]) -> None: # pragma: no cover (lfs) def find_large_added_files( filenames: Sequence[str], maxkb: int, - allow_in_lfs: bool, *, + allow_in_lfs: bool = True, enforce_all: bool = False, ) -> int: # 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( args.filenames, args.maxkb, - args.allow_in_lfs, + allow_in_lfs=args.allow_in_lfs, enforce_all=args.enforce_all, )