mirror of
https://github.com/PyCQA/flake8.git
synced 2026-03-30 18:56:53 +00:00
Fix git hook
This commit is contained in:
parent
c2bb12db6c
commit
472cc21380
1 changed files with 1 additions and 1 deletions
|
|
@ -160,7 +160,7 @@ def git_hook(complexity=-1, strict=False, ignore=None, lazy=False):
|
|||
continue
|
||||
if not os.path.exists(filename):
|
||||
continue
|
||||
warnings += check_file(filename, complexity)
|
||||
warnings += check_file(path=filename, ignore=ignore, complexity=complexity)
|
||||
|
||||
if strict:
|
||||
return warnings
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue