Automatically remove unnecessary `# pylint-disable` comments.
Project description
pylint-reenable
A tool (and pre-commit hook) to automatically remove unnecessary # pylint: disable
comments, for example: a check that's no longer applicable (say you increased your
max line length), a mistake (# pylint: disable
added to a line that wasn't failing),
or other code in the file caused it to no longer need a # pylint: disable
(such as an unused import).
NOTE: this is lifted from yesqa, whose license is included here (as per its terms).
Installation
Coming soon...
As a pre-commit hook
See pre-commit for instructions
Sample .pre-commit-config.yaml
:
- repo: https://github.com/MarcoGorelli/pylint-reenable
rev: v0.1.0
hooks:
- id: pylint-reenable
If you need to select a specific version of pylint and/or run with specific
pylint plugins, add them to additional_dependencies
.
Project details
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
Hashes for pylint_reenable-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88c4853f3d0e2aedf49668d0b19052bcbb4785918d467c366bb5a207d121d992 |
|
MD5 | e4d1c068e2906e1d66c34df6cb8bbecf |
|
BLAKE2b-256 | 15df3423687c7c41956c5eaaadb275fe01bb80ce89d6f92dc14737718b4a68ff |