Skip to main content

Build Status Coverage pre-commit.ci status

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

pip install pylint-reenable

Command-line example

$ pylint-reenable my_file.py

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.4
    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.

Release files for pylint-reenable 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pylint-reenable 0.1.4
File Size Uploaded
pylint_reenable-0.1.4.tar.gz 4.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pylint-reenable 0.1.4
File Interpreter ABI Platform
pylint_reenable-0.1.4-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 10.0 kB

Release files / pylint_reenable-0.1.4.tar.gz

Download URL pylint_reenable-0.1.4.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
6e339490dac788fcb81e48241c0298f728fbf936675a63bf15cf6b0364882765
BLAKE2b-256 checksum
How to use checksums
73fb92a94501f9822e5e1d1cd1c586b888d5d686abe7667d0ccb22e29a3c06fb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.15

Release files / pylint_reenable-0.1.4-py2.py3-none-any.whl

Download URL pylint_reenable-0.1.4-py2.py3-none-any.whl
Size 5.2 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
80b2a1130a7b2f897fa183089339d8f4ebb146675a50516b22e39f30acb7aae6
BLAKE2b-256 checksum
How to use checksums
7033fb6d1d7f21f7ec61613f74529f9ba4b9c711249fbc0bf5d61853d3f49201
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.15

Release history Release notifications | RSS feed

This release

0.1.4 This release

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page