New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

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

pylint-per-file-ignores

A pylint plugin to ignore error codes per file.

  • 1.4.0
  • PyPI
  • Socket score

Maintainers
1

Pylint Per File Ignores 😲

This pylint plugin will enable per-file-ignores in your project!

Install

# w/ poetry
poetry add pylint-per-file-ignores --group dev

# w/ pip
pip install pylint-per-file-ignores

Add to Pylint Settings

[tool.pylint.MASTER]
load-plugins=[
    "pylint_per_file_ignores",
    ...
]

Usage

Add list of patterns and codes you would like to ignore.

Using native pylint settings

Section "MESSAGES CONTROL". Examples:

# setup.cfg

[pylint.MESSAGES CONTROL]
per-file-ignores =
  /folder_1/:missing-function-docstring,W0621,W0240,C0115
  file.py:C0116,E0001
# pyproject.toml

[tool.pylint.'messages control']
per-file-ignores = [
    "/folder_1/:missing-function-docstring,W0621,W0240,C0115",
    "file.py:C0116,E0001"
]

Using custom pyproject.toml section

For backwards compatibility only. Example:

[tool.pylint-per-file-ignores]
"/folder_1/"="missing-function-docstring,W0621,W0240,C0115"
"file.py"="C0116,E0001"

Thanks

To pylint :) And the plugin pylint-django who produced most of the complex code.

Contributing

This repo uses commitizen and semantic release. Please commit using npm run commit .

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