Fix bug in pep8 linter.

Basically pep8 linter was not running on a selected ignore list of
files for which an extra pep8 rule e261 was to be ignored.
This commit is contained in:
Aditya Bansal
2017-06-08 02:45:04 +05:30
committed by showell
parent 5a3a41a644
commit ae7781dd76

View File

@@ -109,7 +109,8 @@ 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_ignore_e261 = run_pycodestyle(filtered_files_E261, ignored_rules + ['E261'])
if not failed:
failed = run_pycodestyle(filtered_files_E261, ignored_rules + ['E261'])
failed = failed_ignore_e261
return failed