Always ignore #noqa lines with flake8.
By default, flake8 ignores # NOQA directives for some PEP8 errors.
This flake8 plugin makes it respect them.
$ pip install flake8-respect-noqa
It is enabled by default as soon as it is installed. Check that flake8 finds it:
$ flake8 --version 2.4.1 (pep8: 1.5.7, flake8-respect-noqa: 0.2, mccabe: 0.3.1, pyflakes: 0.8.1) CPython 2.7.6 on Linux
However, to get it to work, you currently need to run flake8 with --jobs=1 or put jobs = 1 in your [flake8] configuration, otherwise flake8 uses its own ‘reporter’, which trumps the customizations this extension attempts to make.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size flake8_respect_noqa-0.3-py2-none-any.whl (4.3 kB)||File type Wheel||Python version 2.7||Upload date||Hashes View hashes|
|Filename, size flake8-respect-noqa-0.3.tar.gz (3.2 kB)||File type Source||Python version None||Upload date||Hashes View hashes|
Hashes for flake8_respect_noqa-0.3-py2-none-any.whl