smarkets / flake8-strict

Flake8 plugin that checks Python code against a set of opinionated style rules
MIT License
10 stars 8 forks source link

Support flake8 2.6.0+ #4

Closed jstasiak closed 8 years ago

jstasiak commented 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)