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: v0.0.11
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
yesqa-0.0.11.tar.gz
(4.0 kB
view hashes)
Built Distribution
Close
Hashes for yesqa-0.0.11-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7861ea3f835716c5c775725a6248adc55f7c5c7cb681f555042bc4dd8a99a1b0 |
|
MD5 | 82d10b373f95fc4d4476d918831f798f |
|
BLAKE2b-256 | 3babb4e07bb9c6b061d39d255ed42677f295d72235df454fbfbdf10b306f7f6d |