flake8-in-file-ignores-0.2.2
توضیحات
file-level per-file-ignores for flake8
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | flake8-in-file-ignores-0.2.2 |
| نام | flake8-in-file-ignores |
| نسخه کتابخانه | 0.2.2 |
| نگهدارنده | ['Bastien Gerard'] |
| ایمیل نگهدارنده | ['bast.gerard@gmail.com'] |
| نویسنده | - |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com/bagerard/flake8-in-file-ignores |
| آدرس اینترنتی | https://pypi.org/project/flake8-in-file-ignores/ |
| مجوز | MIT License |
[](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.2.x]
* Fix and pypi doc improvement
[0.0.1]
* Initial release
نیازمندی
| مقدار | نام |
|---|---|
| - | flake8 |
نحوه نصب
نصب پکیج whl flake8-in-file-ignores-0.2.2:
pip install flake8-in-file-ignores-0.2.2.whl
نصب پکیج tar.gz flake8-in-file-ignores-0.2.2:
pip install flake8-in-file-ignores-0.2.2.tar.gz