[![build status](https://github.com/asottile/yesqa/actions/workflows/main.yml/badge.svg)](https://github.com/asottile/yesqa/actions/workflows/main.yml)
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/asottile/yesqa/main.svg)](https://results.pre-commit.ci/latest/github/asottile/yesqa/main)
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
```bash
pip install yesqa
```
## As a pre-commit hook
See [pre-commit](https://github.com/pre-commit/pre-commit) for instructions
Sample `.pre-commit-config.yaml`:
```yaml
- repo: https://github.com/asottile/yesqa
rev: v1.5.0
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`][0].
[0]: http://pre-commit.com/#pre-commit-configyaml---hooks
Raw data
{
"_id": null,
"home_page": "https://github.com/asottile/yesqa",
"name": "yesqa",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": "",
"keywords": "",
"author": "Anthony Sottile",
"author_email": "asottile@umich.edu",
"download_url": "https://files.pythonhosted.org/packages/9e/14/20b1afffaea2fe0259f40fcd489670496b86f76777db26b690f6042d38ff/yesqa-1.5.0.tar.gz",
"platform": null,
"description": "[![build status](https://github.com/asottile/yesqa/actions/workflows/main.yml/badge.svg)](https://github.com/asottile/yesqa/actions/workflows/main.yml)\n[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/asottile/yesqa/main.svg)](https://results.pre-commit.ci/latest/github/asottile/yesqa/main)\n\nyesqa\n=====\n\nA tool (and pre-commit hook) to automatically remove unnecessary `# noqa`\ncomments, for example: a check that's no longer applicable (say you increased your\nmax line length), a mistake (`# noqa` added to a line that wasn't failing),\nor other code in the file caused it to no longer need a `# noqa` (such as an unused import).\n\n## Installation\n\n```bash\npip install yesqa\n```\n\n\n## As a pre-commit hook\n\nSee [pre-commit](https://github.com/pre-commit/pre-commit) for instructions\n\nSample `.pre-commit-config.yaml`:\n\n```yaml\n- repo: https://github.com/asottile/yesqa\n rev: v1.5.0\n hooks:\n - id: yesqa\n```\n\nIf you need to select a specific version of flake8 and/or run with specific\nflake8 plugins, add them to [`additional_dependencies`][0].\n\n[0]: http://pre-commit.com/#pre-commit-configyaml---hooks\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Automatically remove unnecessary `# noqa` comments.",
"version": "1.5.0",
"project_urls": {
"Homepage": "https://github.com/asottile/yesqa"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "9133c5b597c690bf3c4ef0b7b93a71e7a254954f8ad6e153a5b614dc50f8da6f",
"md5": "6f974d5a4ba2c42a98a33afa11f7d364",
"sha256": "600c6d6e59aff9d85422c28c0d0ff016c040f4eb653636632c18fb6c43453e00"
},
"downloads": -1,
"filename": "yesqa-1.5.0-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "6f974d5a4ba2c42a98a33afa11f7d364",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": ">=3.8",
"size": 4682,
"upload_time": "2023-06-10T20:33:13",
"upload_time_iso_8601": "2023-06-10T20:33:13.368495Z",
"url": "https://files.pythonhosted.org/packages/91/33/c5b597c690bf3c4ef0b7b93a71e7a254954f8ad6e153a5b614dc50f8da6f/yesqa-1.5.0-py2.py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "9e1420b1afffaea2fe0259f40fcd489670496b86f76777db26b690f6042d38ff",
"md5": "42645f22e9e4fb542fbbb74ddcaf3fa6",
"sha256": "209c17274f3c0cc22195ddb26f93df3523634d0756f756913ed05cba970efad9"
},
"downloads": -1,
"filename": "yesqa-1.5.0.tar.gz",
"has_sig": false,
"md5_digest": "42645f22e9e4fb542fbbb74ddcaf3fa6",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 4421,
"upload_time": "2023-06-10T20:33:14",
"upload_time_iso_8601": "2023-06-10T20:33:14.805060Z",
"url": "https://files.pythonhosted.org/packages/9e/14/20b1afffaea2fe0259f40fcd489670496b86f76777db26b690f6042d38ff/yesqa-1.5.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-06-10 20:33:14",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "asottile",
"github_project": "yesqa",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"tox": true,
"lcname": "yesqa"
}