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.2.3
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.2.3.tar.gz
(4.6 kB
view hashes)
Built Distribution
Close
Hashes for yesqa-1.2.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bbcc2cf5a869fde8310005239ad470030a158daaf1ab99e8cb00939bf93ab6f9 |
|
MD5 | 39451d3d2e74220cfe5b94e535bbf06f |
|
BLAKE2b-256 | 2565045aaa4ac6bf8ea249a34f99faf957b8efb7f2b4e3ed85806c701752b57d |