[](https://github.com/bagerard/flake8-in-file-ignores/actions/workflows/github-actions.yml)
[](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.3.0]
* Fix issue with non-utf8 first line in the files (UnicodeDecodeError) #3
* Limit the files it scans to the files processed by the flake8 invocation #5
[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": null,
"maintainer_email": "bast.gerard@gmail.com",
"keywords": "flake8 per-file-ignores",
"author": null,
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/90/64/8c862e56080652d7399155c7ee2b2f3a6e5ff6212cc8b1fa7b51fca5cd3b/flake8-in-file-ignores-0.3.0.tar.gz",
"platform": null,
"description": "[](https://github.com/bagerard/flake8-in-file-ignores/actions/workflows/github-actions.yml)\n[](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.3.0]\n* Fix issue with non-utf8 first line in the files (UnicodeDecodeError) #3\n* Limit the files it scans to the files processed by the flake8 invocation #5\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.3.0",
"project_urls": {
"Homepage": "https://github.com/bagerard/flake8-in-file-ignores"
},
"split_keywords": [
"flake8",
"per-file-ignores"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "f2bb3eb988a2d683c9ad98a52bb637642cf8a8fd77b49103b95850b0edfa56c9",
"md5": "977970923c4075c87d2f90e9dbaf9571",
"sha256": "b4c608abbfcf71273f634581057d2385b39f608a21b01221c7c7a92b0e74ae41"
},
"downloads": -1,
"filename": "flake8_in_file_ignores-0.3.0-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "977970923c4075c87d2f90e9dbaf9571",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": null,
"size": 6175,
"upload_time": "2024-10-09T14:56:12",
"upload_time_iso_8601": "2024-10-09T14:56:12.961680Z",
"url": "https://files.pythonhosted.org/packages/f2/bb/3eb988a2d683c9ad98a52bb637642cf8a8fd77b49103b95850b0edfa56c9/flake8_in_file_ignores-0.3.0-py2.py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "90648c862e56080652d7399155c7ee2b2f3a6e5ff6212cc8b1fa7b51fca5cd3b",
"md5": "ea04d39ed667a118c3c0d5451854b01f",
"sha256": "17a2f9d002bd9b940c995fd0da0087b26bd8072a450f2c3d0097f814c397338b"
},
"downloads": -1,
"filename": "flake8-in-file-ignores-0.3.0.tar.gz",
"has_sig": false,
"md5_digest": "ea04d39ed667a118c3c0d5451854b01f",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 5557,
"upload_time": "2024-10-09T14:56:13",
"upload_time_iso_8601": "2024-10-09T14:56:13.831762Z",
"url": "https://files.pythonhosted.org/packages/90/64/8c862e56080652d7399155c7ee2b2f3a6e5ff6212cc8b1fa7b51fca5cd3b/flake8-in-file-ignores-0.3.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-10-09 14:56:13",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "bagerard",
"github_project": "flake8-in-file-ignores",
"travis_ci": false,
"coveralls": true,
"github_actions": true,
"lcname": "flake8-in-file-ignores"
}