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

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: yesqa-1.2.2.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.2

File hashes

Hashes for yesqa-1.2.2.tar.gz
Algorithm Hash digest
SHA256 49e95921828bc62b18311d8f179438438f26bf65e1fa7fc08fe74c0f094d71b9
MD5 38ce16b68b8db95f6aaad39089c29751
BLAKE2b-256 c8e3d489ef2ce47ba6c82f323411d5465e829e065717c7cc022174fd2187f5fd

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: yesqa-1.2.2-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.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.2

File hashes

Hashes for yesqa-1.2.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c7ddd5e234b0a0793ea1f763a02b6e8e5b85c3285caa1435016ced792cfe86dc
MD5 d7665351a19a3e5053685c61deb9513b
BLAKE2b-256 713fe383d36d3bb36c51b3a15607582e5596522578b1789aa82fa0e4b597da1f

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