This pylint plugin will enable per-file-ignores in your project!
# w/ poetry
poetry add pylint-per-file-ignores --group dev
# w/ pip
pip install pylint-per-file-ignores
[tool.pylint.MASTER]
load-plugins=[
"pylint_per_file_ignores",
...
]
Add list of patterns and codes you would like to ignore.
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"
]
For backwards compatibility only. Example:
[tool.pylint-per-file-ignores]
"/folder_1/"="missing-function-docstring,W0621,W0240,C0115"
"file.py"="C0116,E0001"
To pylint :) And the plugin pylint-django
who produced most of the complex code.
This repo uses commitizen and semantic release. Please commit using npm run commit
.