You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The flake8 Travis CI build currently runsflake8 --ignore=W503 <files> on modified (non example) files. This is much stricter than the defaults which are--ignore=E121,E123,E126,E226,E24,E704,W503,W504 in the latest flake8 verison. This leads to an inefficient contribution workflow (and sometimes non PEP8 compatible style). Also related to @GaelVaroquaux observations about it during the last sprint.
I understand that less strict settings, might mean potentially more comments during PR reviews. At least; when Travis CI fails due to flake8 it should print the settings of flake8 that were used.
Description
The flake8 Travis CI build currently runs
flake8 --ignore=W503 <files>on modified (non example) files. This is much stricter than the defaults which are--ignore=E121,E123,E126,E226,E24,E704,W503,W504in the latest flake8 verison. This leads to an inefficient contribution workflow (and sometimes non PEP8 compatible style). Also related to @GaelVaroquaux observations about it during the last sprint.What do you think @lesteve ?
Steps/Code to Reproduce
flake8_example.pyflake8 flake8_example.py=> everything looks OK.flake8on your machine => still looks OK. Install the same version of flake8 => still no errorsscikit-learn/build_tools/travis/flake8_diff.shExpected Results
No errors, since this is valid PEP8 code taken from https://www.python.org/dev/peps/pep-0008/#other-recommendations.
I understand that less strict settings, might mean potentially more comments during PR reviews. At least; when Travis CI fails due to flake8 it should print the settings of flake8 that were used.
Actual Results
Some lost contributors time.
Versions
masterscikit-learn branch, flake8 3.3.0