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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2875b982c3edce3637372efdc4889867966c515313627bea32b8558b876b4da |
|
MD5 | 264af21d3bbead42e3a8c424fdb84103 |
|
BLAKE2b-256 | 41ae789debdd5bc1c22e2895ebe88b98ec401e0690613b7c39167794a00b84a0 |
Close
Hashes for pylint_per_file_ignores-1.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09a33dd5a6870286dc0575ed047f2ec59fe19a67df054d68694395eb97266e07 |
|
MD5 | 4a7aa9a2ce60d3749ad0fbf39d7aa7f3 |
|
BLAKE2b-256 | 7033d0959a306616c552f6b7eb65f81010b43d218b134141ff4468347fd41a13 |