[![flake8-test-name-CI](https://github.com/bagerard/flake8-in-file-ignores/actions/workflows/github-actions.yml/badge.svg)](https://github.com/bagerard/flake8-in-file-ignores/actions/workflows/github-actions.yml)
[![PyPI version](https://img.shields.io/pypi/v/flake8-in-file-ignores.svg)](https://pypi.org/project/flake8-in-file-ignores/)
# Flake8 plugin for in-file-ignores
An extension for [Flake8](https://pypi.python.org/pypi/flake8) that allows to specify per-file-ignores
in the actual file instead of having to specify them in the flake8 config (the built-in way).
## Installation
pip install flake8-in-file-ignores
## Usage
This plugin will scan your project files and look for lines similar to the following
# flake8-in-file-ignores: noqa: E731,E123
## How it works
This plugin abuse the `parse_options` feature of flake8 to update the `per-file-ignores` config at that moment.
It scans your project to find the `# flake8-in-file-ignores: noqa:` lines and updates
the existing `per-file-ignores` options. It does all that before any checks actually run.
## Error codes
This plugin uses `IFI` as error code (but it will never raise any error)
## Changes
[v0.2.x]
* Fix and pypi doc improvement
[0.0.1]
* Initial release
Raw data
{
"_id": null,
"home_page": "https://github.com/bagerard/flake8-in-file-ignores",
"name": "flake8-in-file-ignores",
"maintainer": "Bastien Gerard",
"docs_url": null,
"requires_python": "",
"maintainer_email": "bast.gerard@gmail.com",
"keywords": "flake8 per-file-ignores",
"author": "",
"author_email": "",
"download_url": "https://files.pythonhosted.org/packages/ee/14/24d38a09d38fbfc71fe9a5644f83fd3bd6f62264f6fedf55fcbb340029c7/flake8-in-file-ignores-0.2.2.tar.gz",
"platform": null,
"description": "[![flake8-test-name-CI](https://github.com/bagerard/flake8-in-file-ignores/actions/workflows/github-actions.yml/badge.svg)](https://github.com/bagerard/flake8-in-file-ignores/actions/workflows/github-actions.yml)\n[![PyPI version](https://img.shields.io/pypi/v/flake8-in-file-ignores.svg)](https://pypi.org/project/flake8-in-file-ignores/)\n\n# Flake8 plugin for in-file-ignores\n\nAn extension for [Flake8](https://pypi.python.org/pypi/flake8) that allows to specify per-file-ignores\nin the actual file instead of having to specify them in the flake8 config (the built-in way).\n\n## Installation\n\n pip install flake8-in-file-ignores\n\n## Usage\n \nThis plugin will scan your project files and look for lines similar to the following\n \n # flake8-in-file-ignores: noqa: E731,E123\n\n\n## How it works\n\nThis plugin abuse the `parse_options` feature of flake8 to update the `per-file-ignores` config at that moment.\n\nIt scans your project to find the `# flake8-in-file-ignores: noqa:` lines and updates\nthe existing `per-file-ignores` options. It does all that before any checks actually run.\n\n## Error codes\n\nThis plugin uses `IFI` as error code (but it will never raise any error)\n\n\n## Changes\n\n[v0.2.x]\n* Fix and pypi doc improvement\n\n[0.0.1]\n* Initial release\n",
"bugtrack_url": null,
"license": "MIT License",
"summary": "file-level per-file-ignores for flake8",
"version": "0.2.2",
"split_keywords": [
"flake8",
"per-file-ignores"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "256004c3ff97a9c5de0e5168f04253bcf0db01595e01218588e81e3c2d1bd329",
"md5": "2d625d00b11ac520ae1d45858896cdec",
"sha256": "19bd0e1b0dd69136b11320a414ddb42e87e0de5617b22577873c5624f21c728e"
},
"downloads": -1,
"filename": "flake8_in_file_ignores-0.2.2-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "2d625d00b11ac520ae1d45858896cdec",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": null,
"size": 5474,
"upload_time": "2023-01-16T20:10:34",
"upload_time_iso_8601": "2023-01-16T20:10:34.062728Z",
"url": "https://files.pythonhosted.org/packages/25/60/04c3ff97a9c5de0e5168f04253bcf0db01595e01218588e81e3c2d1bd329/flake8_in_file_ignores-0.2.2-py2.py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "ee1424d38a09d38fbfc71fe9a5644f83fd3bd6f62264f6fedf55fcbb340029c7",
"md5": "f8327f450de226d48ebcea9b007eccb0",
"sha256": "3dadcc5f4912e1d1d3b90fa43c5948e755db27cfa343c95c0461c40bca6eed49"
},
"downloads": -1,
"filename": "flake8-in-file-ignores-0.2.2.tar.gz",
"has_sig": false,
"md5_digest": "f8327f450de226d48ebcea9b007eccb0",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 5417,
"upload_time": "2023-01-16T20:10:35",
"upload_time_iso_8601": "2023-01-16T20:10:35.493748Z",
"url": "https://files.pythonhosted.org/packages/ee/14/24d38a09d38fbfc71fe9a5644f83fd3bd6f62264f6fedf55fcbb340029c7/flake8-in-file-ignores-0.2.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-01-16 20:10:35",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "bagerard",
"github_project": "flake8-in-file-ignores",
"travis_ci": false,
"coveralls": true,
"github_actions": true,
"lcname": "flake8-in-file-ignores"
}