A pylint plugin to ignore error codes per file.
Project description
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
[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
.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for pylint_per_file_ignores-1.3.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45e3222121b24183c43664d20a9bccd0972cf5de0d7f4af386adb0f74f0019d1 |
|
MD5 | d05135e1cedb4cc675b960a990277e7f |
|
BLAKE2b-256 | 719e23cce4bbc964b15731be4a9551ea6b52b5c17bb0fed1de465a8c3a327182 |
Close
Hashes for pylint_per_file_ignores-1.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9711b778dbc58a57b5d8965bb9964a0e84a3d6a922bcd4b6588631d2df7735e7 |
|
MD5 | a638cbe1cf68c159a3e4e9373019f377 |
|
BLAKE2b-256 | 54d5ea28184cc71e90e258ef0fe22efda911bbe48ad6b59d23b392ce6a3d2fc5 |