mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-12 07:44:16 +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
|
continue
|
||||||
if not os.path.exists(filename):
|
if not os.path.exists(filename):
|
||||||
continue
|
continue
|
||||||
warnings += check_file(filename, complexity)
|
warnings += check_file(path=filename, ignore=ignore, complexity=complexity)
|
||||||
|
|
||||||
if strict:
|
if strict:
|
||||||
return warnings
|
return warnings
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue