Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/spookylukey/flake8-respect-noqa
flake8 extension to make #noqa always be respected
https://github.com/spookylukey/flake8-respect-noqa
Last synced: 2 months ago
JSON representation
flake8 extension to make #noqa always be respected
- Host: GitHub
- URL: https://github.com/spookylukey/flake8-respect-noqa
- Owner: spookylukey
- License: mit
- Created: 2015-08-26T12:37:47.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-06-26T07:09:25.000Z (over 8 years ago)
- Last Synced: 2024-10-05T13:07:39.716Z (3 months ago)
- Language: Python
- Size: 3.91 KB
- Stars: 6
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
Flake8 respect NOQA
===================By default, flake8 (before 3.0) ignores ``# NOQA`` directives for some PEP8 errors.
See https://gitlab.com/pycqa/flake8/issues/21
This flake8 plugin makes it respect them.
If you are using flake8 3.0.0b1 or later, this plugin is not needed - see http://flake8.pycqa.org/en/3.0.0b1/user/ignoring-errors.html
Installation
------------Simply::
$ pip install flake8-respect-noqa
Usage
-----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.See https://gitlab.com/pycqa/flake8/issues/66