file-level per-file-ignores for flake8
Project 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) [![PyPI version](https://img.shields.io/pypi/v/flake8-in-file-ignores.svg)](https://pypi-hypernode.com/project/flake8-in-file-ignores/)
# Flake8 plugin for in-file-ignores
An extension for [Flake8](https://pypi-hypernode.com/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.1] * Fix to project doc
[0.0.1] * Initial release
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file flake8-in-file-ignores-0.2.1.tar.gz
.
File metadata
- Download URL: flake8-in-file-ignores-0.2.1.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ac456892798ba870d950ac3d77e3d044532b9b6aa91a63e7cc90987d63e32ab |
|
MD5 | 66bfa35c91711dc4bd134586a139602b |
|
BLAKE2b-256 | 1bd13607ced9fc92baf44914e47673a852ddd03cd3e249d2469451a4d4a197a5 |
File details
Details for the file flake8_in_file_ignores-0.2.1-py2.py3-none-any.whl
.
File metadata
- Download URL: flake8_in_file_ignores-0.2.1-py2.py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a93e30a0dba04a677b527d26653f0151b5c838e45634707790b397389ec7f7b |
|
MD5 | 38ab7b9afce0897f0db071e84e92da31 |
|
BLAKE2b-256 | f4f22b965d81f030e4c3b4200661c824477ab8562750ee0fd4b0ebe400fb8234 |