Skip to content

vibe-ad/pylint-per-file-ignores

 
 

Repository files navigation

Pylint Per File Ignores 😲

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

Install

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

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

Add to Pylint Settings

Edit your pyproject.toml:

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

Usage

Add a section to your pyproject.toml with the patterns and codes you would like to ignore.

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

About

A pylint plugin to ignore error codes per file.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%