mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-04 20:26:53 +00:00
Wrong exit code for the VCS hooks
This commit is contained in:
parent
a13bdad3d8
commit
29b74f9b37
1 changed files with 2 additions and 2 deletions
|
|
@ -25,7 +25,7 @@ def git_hook(complexity=-1, strict=False, ignore=None, lazy=False):
|
|||
report = flake8_style.check_files(files_modified)
|
||||
|
||||
if strict:
|
||||
return report.get_file_results()
|
||||
return report.total_errors
|
||||
|
||||
return 0
|
||||
|
||||
|
|
@ -46,7 +46,7 @@ def hg_hook(ui, repo, **kwargs):
|
|||
strict = ui.configbool('flake8', 'strict', default=True)
|
||||
|
||||
if strict:
|
||||
return report.get_file_results()
|
||||
return report.total_errors
|
||||
|
||||
return 0
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue