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

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: yesqa-1.0.0.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.6.9

File hashes

Hashes for yesqa-1.0.0.tar.gz
Algorithm Hash digest
SHA256 4e52642ee4e3f9a9b95e6af5c6140d27d46ace040882907509ebc0079a2835ab
MD5 2fb88ed0089e7348b58a826cd8c6a41c
BLAKE2b-256 d197c6970b0d8bdd24777b9c6ffeaabc7f52409b4dc127a68acbd7782253b4f4

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: yesqa-1.0.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.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.6.9

File hashes

Hashes for yesqa-1.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 3a2ae90efa2eff78d36263db5559915477390028d00d7f89cc60ed70653e6466
MD5 25ce32a26b6a39d15aaae42e90436d4c
BLAKE2b-256 9bd858f9abafa5eed3317f5d0541972161fd5d23d78a2e32f3624db24ffc075b

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