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.0
    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.0.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

yesqa-1.2.0-py2.py3-none-any.whl (4.6 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: yesqa-1.2.0.tar.gz
  • Upload date:
  • Size: 4.4 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.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

File hashes

Hashes for yesqa-1.2.0.tar.gz
Algorithm Hash digest
SHA256 b26a013620dc93a57712c992d579201803d0385d5abee6d95b94086a36b8cc00
MD5 04662c532ac77b4a5d2448df80982466
BLAKE2b-256 b0c74b3bce3e0230cabd22a3f30f3852b7b5e4105b5db0b515ee1f309af2271c

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: yesqa-1.2.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.6 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.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

File hashes

Hashes for yesqa-1.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b3ab76b62b9ec5c66bebf000ec72b2f0a54ce55ddcd8d23dc7e4e8689a874023
MD5 563fad3d8895ac720db5b59526c10c1a
BLAKE2b-256 28679e2d8145e29455b35b44c8380e7a1a4e16a57bfdfd3f1f7964afa564b53d

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