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.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 480a54598c81ae2d23fa6bb564eed0f020358b7678a50d2fd99283b135303f58 |
|
MD5 | 6c4ca5191906f53c17267b71a0cf4050 |
|
BLAKE2b-256 | b5045cd37c2cf9f18e5308ea4f3f2d7231d15c4402cc2ed14816276ccea4f810 |
Close
Hashes for pylint_per_file_ignores-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f20a5749507df17bd97081f65b0938370e6cfabf0f6ce7faff8b2d43ed31cd5 |
|
MD5 | 3fa3a580c2d68d0a77717ed432502164 |
|
BLAKE2b-256 | 3f9a13601368712a372133d581c1ff64a95f9c1a7878c318d6a377efd323608b |