Automatically remove unnecessary `# noqa` comments.
Project description
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.5.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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file yesqa-1.5.0.tar.gz
.
File metadata
- Download URL: yesqa-1.5.0.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 209c17274f3c0cc22195ddb26f93df3523634d0756f756913ed05cba970efad9 |
|
MD5 | 42645f22e9e4fb542fbbb74ddcaf3fa6 |
|
BLAKE2b-256 | 9e1420b1afffaea2fe0259f40fcd489670496b86f76777db26b690f6042d38ff |
File details
Details for the file yesqa-1.5.0-py2.py3-none-any.whl
.
File metadata
- Download URL: yesqa-1.5.0-py2.py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 600c6d6e59aff9d85422c28c0d0ff016c040f4eb653636632c18fb6c43453e00 |
|
MD5 | 6f974d5a4ba2c42a98a33afa11f7d364 |
|
BLAKE2b-256 | 9133c5b597c690bf3c4ef0b7b93a71e7a254954f8ad6e153a5b614dc50f8da6f |