Skip to main content

Automatically remove unnecessary `# pylint-disable` comments.

Project description

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

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

pylint_reenable-0.1.1.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

pylint_reenable-0.1.1-py2.py3-none-any.whl (5.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file pylint_reenable-0.1.1.tar.gz.

File metadata

  • Download URL: pylint_reenable-0.1.1.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.15

File hashes

Hashes for pylint_reenable-0.1.1.tar.gz
Algorithm Hash digest
SHA256 195f404c94c63629b9b8b5b6c9c22a20b62013c51727b54200a75dc32a429537
MD5 f8b1f8e5f1790829a2748149717950b1
BLAKE2b-256 9788b9736519c15b11c1b68e3709a87e9189fdb7cca8320a0ba932ad7503067e

See more details on using hashes here.

Provenance

File details

Details for the file pylint_reenable-0.1.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for pylint_reenable-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 39dcff6f8c2dae041fd503039a15eb7262e7825d2a0e79af3c8da116644afb8c
MD5 73976201e43918d8fc23c41a42ce475d
BLAKE2b-256 44c52d1680bfc6c5724622504dd0231b4f04062dab8e2a2f2f3252ca88e1c22b

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page