Fix pep8 linter bug.

In this commit we fix the bug where pep8 linter does not report
false and exit when we got linting issues.
This commit is contained in:
Aditya Bansal 2017-06-08 02:26:13 +05:30 committed by Tim Abbott
parent d3df4307d3
commit 24b1efc74e
1 changed files with 2 additions and 1 deletions

View File

@ -109,6 +109,7 @@ def check_pep8(files):
if not len(filtered_files_E261) == 0:
# Adding an extra ignore rule for these files since they still remain in
# violation of PEP-E261.
failed = run_pycodestyle(filtered_files_E261, ignored_rules + ['E261'])
if not failed:
failed = run_pycodestyle(filtered_files_E261, ignored_rules + ['E261'])
return failed