[](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
Metadata
Release files for flake8-in-file-ignores 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| flake8-in-file-ignores-0.3.0.tar.gz | 5.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| flake8_in_file_ignores-0.3.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 11.7 kB
Release files / flake8-in-file-ignores-0.3.0.tar.gz
| Download URL | flake8-in-file-ignores-0.3.0.tar.gz |
|---|---|
| Size | 5.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
17a2f9d002bd9b940c995fd0da0087b26bd8072a450f2c3d0097f814c397338b
|
|
BLAKE2b-256 checksum How to use checksums |
90648c862e56080652d7399155c7ee2b2f3a6e5ff6212cc8b1fa7b51fca5cd3b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Release files / flake8_in_file_ignores-0.3.0-py2.py3-none-any.whl
| Download URL | flake8_in_file_ignores-0.3.0-py2.py3-none-any.whl |
|---|---|
| Size | 6.2 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
b4c608abbfcf71273f634581057d2385b39f608a21b01221c7c7a92b0e74ae41
|
|
BLAKE2b-256 checksum How to use checksums |
f2bb3eb988a2d683c9ad98a52bb637642cf8a8fd77b49103b95850b0edfa56c9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Security for flake8-in-file-ignores 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.