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.4.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
yesqa-1.4.0.tar.gz
(4.5 kB
view hashes)
Built Distribution
Close
Hashes for yesqa-1.4.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d66f162731173b20b29f0107804b51a7c8573f5c8d82f8ee2c8cf1724a2c84b |
|
MD5 | 97e89a4fe6c7f6534283191ba6fa689c |
|
BLAKE2b-256 | 62382a5e119dab0b5b32f47542b5e266d0fdb8d21193613d2a85bee3ae17e198 |