Skip to main content

file-level per-file-ignores for flake8

Project description

# Flake8 plugin for in-file-ignores

An extension for 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 actual run.

## Error codes

This plugin uses IFI as error code (but it will never raise any error)

## Changes

[0.0.1] - 2022-07-02 * 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

flake8-in-file-ignores-0.2.0.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

flake8_in_file_ignores-0.2.0-py2.py3-none-any.whl (5.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file flake8-in-file-ignores-0.2.0.tar.gz.

File metadata

File hashes

Hashes for flake8-in-file-ignores-0.2.0.tar.gz
Algorithm Hash digest
SHA256 a3f110cdb13758c1658e433d9065de6bac201c3e8c3cc870f77019d518d7d072
MD5 3373c0033062fc754ba21fa16f8e596f
BLAKE2b-256 96d9e72e44370c3e3b2d759a1f91ebd5d73d0dfbfb9deb165b32f75d00e5554d

See more details on using hashes here.

File details

Details for the file flake8_in_file_ignores-0.2.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for flake8_in_file_ignores-0.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 00978fa1b3183a478c1e0273b1444f3cb036683cc91b381d7c5034a5ddabf512
MD5 468721ba977cf392283107393e834ebf
BLAKE2b-256 dd81dc09b4d996d5a5ab7ca79c50682f3b12ddf0511ddbd62f6fa9f7892694ad

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page