Skip to main content

Automatically remove unnecessary `# noqa` comments.

Project description

Build Status Azure DevOps coverage

yesqa

A tool (and pre-commit hook) to automatically remove unnecessary # noqa comments, for example: a check that's no longer applicable (say you increased your max line length), a mistake (# noqa added to a line that wasn't failing), or other code in the file caused it to no longer need a # noqa (such as an unused import).

Installation

pip install yesqa

As a pre-commit hook

See pre-commit for instructions

Sample .pre-commit-config.yaml:

-   repo: https://github.com/asottile/yesqa
    rev: v1.2.1
    hooks:
    -   id: yesqa

If you need to select a specific version of flake8 and/or run with specific flake8 plugins, add them to additional_dependencies.

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

yesqa-1.2.1.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

yesqa-1.2.1-py2.py3-none-any.whl (4.7 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file yesqa-1.2.1.tar.gz.

File metadata

  • Download URL: yesqa-1.2.1.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

File hashes

Hashes for yesqa-1.2.1.tar.gz
Algorithm Hash digest
SHA256 6a13eed11f2f3206403ee44f98dfeecbb34cbd198b7230bf43e03965ff6dff27
MD5 f078755f828888fc33e24fd27d848da0
BLAKE2b-256 98fb8f47a8842e916129224b92d05c275225adedf58199ec4bb08e4b906348d7

See more details on using hashes here.

Provenance

File details

Details for the file yesqa-1.2.1-py2.py3-none-any.whl.

File metadata

  • Download URL: yesqa-1.2.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

File hashes

Hashes for yesqa-1.2.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0424a565e11d7507da341a401567b5a108e5dfb4ccf23f2d5936e568f895a435
MD5 02689ff3ac93bd3790167e6e8c7e1720
BLAKE2b-256 fe8e2bc44562c4b873c9e17230532a431637dbea55380c3049d7d8bb25ce5426

See more details on using hashes here.

Provenance

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