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.1.0.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

flake8_in_file_ignores-0.1.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.1.0.tar.gz.

File metadata

File hashes

Hashes for flake8-in-file-ignores-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9073b5bf0e9678b4bc7c97d9f88977b069c2b87cb7a9cec3b0bab46dc7ab2a9e
MD5 166e2ab8207df779e2efd959cf2840a7
BLAKE2b-256 1e1e21556c47b238b91a8959060400a784d6c9b6020761db0d5c72fb9d2fb74e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for flake8_in_file_ignores-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 bcbb30a9fd3483415e9ef82565c590bc17de227e99839f8fd324889edddf0262
MD5 2170438b13993613d3e59b3b983ce77d
BLAKE2b-256 6768fc50f01eac25698f2d1b25144c89ed14e8958b9d2e61b0ff7be101e7ec66

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