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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 671e980b62f9fc298e1680c22f2cd9db072028bd3553120223aa042b6222fe61 |
|
MD5 | cc28a34135b261de877253c82589d6b4 |
|
BLAKE2b-256 | e196135b26d7b0a4a2599405486794131427be29277dfaa07a7d1d0709ab5c21 |
Close
Hashes for pylint_per_file_ignores-1.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 03c3755bdef79a1ae28fc29615eeb3c8702f7fb485ec7e2f7e02bcd3b9f9c0df |
|
MD5 | afd1e3dc0c8f1d173723077b71e5f352 |
|
BLAKE2b-256 | ed82c368aa3c96e407efc1682fade8969bfa78255a62984a2f78dff50d41b87c |