flake8-import-order plugin I10 errors ignored with flake8>=3.1.0
Please provide the following version information
- Version of Python which has Flake8 installed (e.g.,
python -V
): Python 2.7.6 - How you installed Flake8 (e.g.,
pip
,apt
,yum
, etc.): pip- If you used pip, the version of pip installed (e.g.,
pip --version
): pip 9.0.1
- If you used pip, the version of pip installed (e.g.,
- Version of setuptools installed (e.g.,
python -c 'import setuptools; print(setuptools.__version__)'
): 28.8.0 - Version of Flake8 installed (i.e., copy and paste all of the output from
flake8 --version
): 3.2.0 (pyflakes: 1.3.0, flake8-docstrings: 1.0.2, pydocstyle: 1.1.1, import-order: 0.11, mccabe: 0.5.2, pycodestyle: 2.2.0) CPython 2.7.6 on Linux
Please describe the problem or feature
I'm a user of the flake8-import-order plugin. Since flake8 3.1.0, running flake8 on a file having a wrong import order does not produce any error. Downgrading to 3.0.4 fixes the problem.
If this is a bug report, please explain with examples (and example code) what you expected to happen and what actually happened.
(.venv)$ flake8 --version
3.2.0 (pyflakes: 1.3.0, flake8-docstrings: 1.0.2, pydocstyle: 1.1.1, import-order: 0.11, mccabe: 0.5.2, pycodestyle: 2.2.0) CPython 2.7.6 on Linux
(.venv)$ flake8 test/unit/managers/base.py
(.venv)$ flake8 -v -v test/unit/managers/base.py 2>&1|grep I100
flake8.style_guide MainProcess 482 DEBUG Deciding if "I100" should be reported
flake8.style_guide MainProcess 482 DEBUG The user configured "I100" to be "Ignored.Implicitly", "Selected.Implicitly"
flake8.style_guide MainProcess 482 DEBUG "I100" will be "Decision.Ignored"
flake8.style_guide MainProcess 482 DEBUG Error(code='I100', filename='test/unit/managers/base.py', line_number=6, column_number=1, text='Import statements are in the wrong order. import imp should be before import os', physical_line='import imp\n') is not inline ignored
flake8.style_guide MainProcess 483 DEBUG Error(code='I100', filename='test/unit/managers/base.py', line_number=13, column_number=1, text='Import statements are in the wrong order. import galaxy_mock should be before from six', physical_line='import galaxy_mock\n') is not inline ignored
(.venv)$ pip install 'flake8==3.0.4'
...
Successfully installed flake8-3.0.4 pycodestyle-2.0.0 pyflakes-1.2.3
(.venv)$ flake8 test/unit/managers/base.py
test/unit/managers/base.py:6:1: I100 Import statements are in the wrong order. import imp should be before import os
test/unit/managers/base.py:13:1: I100 Import statements are in the wrong order. import galaxy_mock should be before from six
(.venv)$ flake8 -v -v test/unit/managers/base.py 2>&1|grep I100
flake8.style_guide MainProcess 472 DEBUG Deciding if "I100" should be reported
flake8.style_guide MainProcess 472 DEBUG The user configured "I100" to be "Selected.Implicitly", "Selected.Implicitly"
flake8.style_guide MainProcess 472 DEBUG "I100" will be "Decision.Selected"
flake8.style_guide MainProcess 472 DEBUG Error(code='I100', filename='test/unit/managers/base.py', line_number=6, column_number=1, text='Import statements are in the wrong order. import imp should be before import os', physical_line='import imp\n') is not inline ignored
flake8.style_guide MainProcess 473 DEBUG Error(code='I100', filename='test/unit/managers/base.py', line_number=13, column_number=1, text='Import statements are in the wrong order. import galaxy_mock should be before from six', physical_line='import galaxy_mock\n') is not inline ignored
test/unit/managers/base.py:6:1: I100 Import statements are in the wrong order. import imp should be before import os
test/unit/managers/base.py:13:1: I100 Import statements are in the wrong order. import galaxy_mock should be before from six