Skip to main content

Automatically remove unnecessary `# noqa` comments.

Project description

Build Status Coverage Status

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: v0.0.10
    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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

yesqa-0.0.10.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

yesqa-0.0.10-py2.py3-none-any.whl (4.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file yesqa-0.0.10.tar.gz.

File metadata

  • Download URL: yesqa-0.0.10.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

File hashes

Hashes for yesqa-0.0.10.tar.gz
Algorithm Hash digest
SHA256 78e604c7646223ee8997e9b93271429a02b4c7527c19962dd2ebadcf98976857
MD5 6f1a8dc4f0122578e6ce02fa3d24712b
BLAKE2b-256 8f1cf8c5607d17c47f6cc88bc42683009b0a783d20835b20ea182d6346dceb97

See more details on using hashes here.

Provenance

File details

Details for the file yesqa-0.0.10-py2.py3-none-any.whl.

File metadata

  • Download URL: yesqa-0.0.10-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

File hashes

Hashes for yesqa-0.0.10-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 40360100d2f8f33a8621087063888c7d644685f93fffd3e00e29480563a2b804
MD5 cc21c679416c897f00965b78c7ba1526
BLAKE2b-256 2c3d4d20477ef8c6d3b5d4936172f860fe5fb1c5ff3b2b83273481ce33e910da

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