Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

flake8-in-file-ignores

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flake8-in-file-ignores

file-level per-file-ignores for flake8

  • 0.3.0
  • PyPI
  • Socket score

Maintainers
1

flake8-test-name-CI PyPI version

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 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

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc