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
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
.
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.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 665e29dd02061bbdd70ced7273a6971880fe97a3a2c15615ad2b31e567559b3c |
|
MD5 | 131077f93dbca803e1beef6af0ee08e3 |
|
BLAKE2b-256 | eddf3813d36a37c6d0765ec6083486ec6176dd3ba6cfcda9376c11fe8340f44a |
Close
Hashes for pylint_per_file_ignores-1.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15839fcac882367c088625215a141e60a8ab11e6abe38e66ad2167c507403fc3 |
|
MD5 | e7fb48aad471770f6baeb310adef3ff6 |
|
BLAKE2b-256 | d03da2fb814f31756b4655a4122977f61c74dcdf42907aef3067419540ac9db1 |