Skip to main content

[![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.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

Metadata

Release files for flake8-in-file-ignores 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for flake8-in-file-ignores 0.2.2
File Size Uploaded
flake8-in-file-ignores-0.2.2.tar.gz 5.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for flake8-in-file-ignores 0.2.2
File Interpreter ABI Platform
flake8_in_file_ignores-0.2.2-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 10.9 kB

Release files / flake8-in-file-ignores-0.2.2.tar.gz

Download URL flake8-in-file-ignores-0.2.2.tar.gz
Size 5.4 kB
Tags Source
SHA-256 checksum
How to use checksums
3dadcc5f4912e1d1d3b90fa43c5948e755db27cfa343c95c0461c40bca6eed49
BLAKE2b-256 checksum
How to use checksums
ee1424d38a09d38fbfc71fe9a5644f83fd3bd6f62264f6fedf55fcbb340029c7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.1

Release files / flake8_in_file_ignores-0.2.2-py2.py3-none-any.whl

Download URL flake8_in_file_ignores-0.2.2-py2.py3-none-any.whl
Size 5.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
19bd0e1b0dd69136b11320a414ddb42e87e0de5617b22577873c5624f21c728e
BLAKE2b-256 checksum
How to use checksums
256004c3ff97a9c5de0e5168f04253bcf0db01595e01218588e81e3c2d1bd329
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.1

Release history Release notifications | RSS feed

0.3.0

2 release files

This release

0.2.2 This release

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page