Skip to main content

add `noqa` comments to ignore every occurrence of a flake8 error

Project description

This tool is no longer maintained. Its functionality is included in the silence-lint-error package.


ignore-flake8-error

Add noqa comments to ignore every occurrence of a flake8 error.

Usage

Install with pip:

python -m pip install ignore-flake8-error

Call the tool with an error code you want to add ignore comments for and the paths to the files:

ignore-flake8-error F401 path/to/files/ path/to/more/files/

Rationale

When adding a new plugin (or enabling more rules) to flake8 on a large codebase, fixing the existing violations can be too large a task to do quickly. However, starting to check the rule sooner will prevent new violations fom being introduces.

Ignoring existing violation is a quick wya to allow new rules to be enabled. You can then burn down the existing violations over time.

This tool makes it easy to find and ignore all current violations of a rule so that it can be enabled.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ignore_flake8_error-0.2.1.tar.gz (3.8 kB view hashes)

Uploaded Source

Built Distribution

ignore_flake8_error-0.2.1-py2.py3-none-any.whl (4.1 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page