Closed jstasiak closed 8 years ago
pep8 has been renamed to pycodestyle[1] and the most recent flake8 version depends on pycodestyle rather than on pep8[2], we need this conditional import to support both older and more recent installations.
[1] https://github.com/PyCQA/pycodestyle/issues/466 [2] https://gitlab.com/pycqa/flake8/commit/0a6ecad8061c338b03709af0dc3924a25082246d
Example of related failure: https://travis-ci.org/smarkets/flake8-strict/builds/124444547 (I triggered one subbuild today to demonstrate the issue)
pep8 has been renamed to pycodestyle[1] and the most recent flake8 version depends on pycodestyle rather than on pep8[2], we need this conditional import to support both older and more recent installations.
[1] https://github.com/PyCQA/pycodestyle/issues/466 [2] https://gitlab.com/pycqa/flake8/commit/0a6ecad8061c338b03709af0dc3924a25082246d
Example of related failure: https://travis-ci.org/smarkets/flake8-strict/builds/124444547 (I triggered one subbuild today to demonstrate the issue)