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.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c10f9ca4be8d474f9bbada3a55c32e6be8fc145faed5acd021837f7417035f7e |
|
MD5 | 954524148fa14691677293883c962dd5 |
|
BLAKE2b-256 | 95f5b724ca829d2d88370d5d794365d1a8c864894eda56259af25af1c4d0991f |
Close
Hashes for pylint_per_file_ignores-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb4aacc2c0308260e30c7b8a96b6fc2c7b0f9b2e9cb98fc62da806c00f29ae8a |
|
MD5 | 69610f25b3a4dcc1db011d1e58684ab7 |
|
BLAKE2b-256 | 4a1a8ae49ad904191e633b54e545a9bbadfbd9e74e25ea36c44941a783b319d3 |