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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

Details for the file ignore_flake8_error-0.2.1.tar.gz.

File metadata

  • Download URL: ignore_flake8_error-0.2.1.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for ignore_flake8_error-0.2.1.tar.gz
Algorithm Hash digest
SHA256 21f61d6b423426256ed7611f0fb61941dead249d4f5b214f41051a311163dcef
MD5 6afa317ce427c4e39fa2de6f1a7f77a4
BLAKE2b-256 2100b6b8850f7ac283ce7add33526b3ce11cb8427c024e0b9ffc9ae5e11900bf

See more details on using hashes here.

File details

Details for the file ignore_flake8_error-0.2.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for ignore_flake8_error-0.2.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 6c706bd00aedbbb71466fe6fc78e85bc16433127cec3f16fb8c5e19cad7a5960
MD5 4904e848a4e6f417ec6e535688297564
BLAKE2b-256 df582f4926a6f81920e493d6fc73dfff2c6efda8633f03381c87aa78065de7e7

See more details on using hashes here.

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