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.1.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
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file yesqa-1.1.1.tar.gz.
File metadata
- Download URL: yesqa-1.1.1.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c50c0f018ce36ee6e785c9929b3bbcbc0a6a25c3a8bf869c712471c29a22432b
|
|
| MD5 |
065fabb2f9738eb5c051dbfed0c6f307
|
|
| BLAKE2b-256 |
89f706283dafad44e14d24f956522518e0f4b7f360d6971edf7d0491e698fdc6
|
File details
Details for the file yesqa-1.1.1-py2.py3-none-any.whl.
File metadata
- Download URL: yesqa-1.1.1-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d6b4b4e6da6bfe4a3cbe5b6a20b325eff6fb005962c77eaacfbf72cecf746044
|
|
| MD5 |
f1f464ed0f50f2ee29fba9ecb4e47e8b
|
|
| BLAKE2b-256 |
76fde5a33381bf4e4d325a8afbf1c18a21649d551936e0da8bee381146b3316b
|