[](https://api.reuse.software/info/github.com/SAP/pylint-per-file-ignores)
# Pylint Per File Ignores
This pylint plugin will enable per-file-ignores in your project!
The project was initially created by [christopherpickering](https://github.com/christopherpickering).
## Install
```
pip install pylint-per-file-ignores
```
## Add to Pylint Settings
```toml
[tool.pylint.main]
load-plugins=[
"pylint_per_file_ignores",
...
]
```
## Usage
Add list of patterns and codes you would like to ignore.
The patterns are matched using `globs`.
**.pylintrc**
```ini
[MESSAGES CONTROL]
per-file-ignores =
/folder_1/:missing-function-docstring,W0621,W0240,C0115
file.py:C0116,E0001
```
**setup.cfg**
```ini
[pylint.MESSAGES CONTROL]
per-file-ignores =
/folder_1/:missing-function-docstring,W0621,W0240,C0115
file.py:C0116,E0001
```
**pyproject.toml**
```toml
[tool.pylint.'messages control']
per-file-ignores = [
"/folder_1/:missing-function-docstring,W0621,W0240,C0115",
"file.py:C0116,E0001"
]
```
## Build and Publish
This project uses `setuptools` as the dependency management and build tool.
To publish a new release, follow these steps:
* Update the version in the `pyproject.toml`
* Add an entry in the changelog
* Push a new tag like `vX.X.X` to trigger the release
## Support, Feedback, Contributing
This project is open to feature requests/suggestions, bug reports etc. via [GitHub issues](https://github.com/SAP/pylint-per-file-ignores/issues). Contribution and feedback are encouraged and always welcome. For more information about how to contribute, the project structure, as well as additional contribution information, see our [Contribution Guidelines](CONTRIBUTING.md).
## Security / Disclosure
If you find any bug that may be a security problem, please follow our instructions at [in our security policy](https://github.com/SAP/pylint-per-file-ignores/security/policy) on how to report it. Please do not create GitHub issues for security-related doubts or problems.
## Code of Conduct
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone. By participating in this project, you agree to abide by its [Code of Conduct](https://github.com/SAP/.github/blob/main/CODE_OF_CONDUCT.md) at all times.
## Licensing
Copyright 2025 SAP SE or an SAP affiliate company and pylint-per-file-ignores contributors. Please see our [LICENSE](LICENSE) for copyright and license information. Detailed information including third-party components and their licensing/copyright information is available [via the REUSE tool](https://api.reuse.software/info/github.com/SAP/pylint-per-file-ignores).
Raw data
{
"_id": null,
"home_page": null,
"name": "pylint-per-file-ignores",
"maintainer": null,
"docs_url": null,
"requires_python": "<4,>=3.9",
"maintainer_email": "Kai Harder <kai.harder@sap.com>",
"keywords": "pylint, plugin, quality, linter",
"author": null,
"author_email": "Christopher Pickering <christopher@going.bg>, Kai Harder <kai.harder@sap.com>",
"download_url": "https://files.pythonhosted.org/packages/d2/65/7018b0b2919974e8cc3bf6b14ccd89dcfae63f31d890f2f66196446893ce/pylint_per_file_ignores-2.0.3.tar.gz",
"platform": null,
"description": "[](https://api.reuse.software/info/github.com/SAP/pylint-per-file-ignores)\n\n\n# Pylint Per File Ignores\nThis pylint plugin will enable per-file-ignores in your project!\n\nThe project was initially created by [christopherpickering](https://github.com/christopherpickering).\n\n## Install\n```\npip install pylint-per-file-ignores\n```\n\n## Add to Pylint Settings\n```toml\n[tool.pylint.main]\nload-plugins=[\n \"pylint_per_file_ignores\",\n ...\n]\n```\n\n## Usage\nAdd list of patterns and codes you would like to ignore.\nThe patterns are matched using `globs`.\n\n**.pylintrc**\n```ini\n[MESSAGES CONTROL]\nper-file-ignores =\n /folder_1/:missing-function-docstring,W0621,W0240,C0115\n file.py:C0116,E0001\n```\n\n**setup.cfg**\n```ini\n[pylint.MESSAGES CONTROL]\nper-file-ignores =\n /folder_1/:missing-function-docstring,W0621,W0240,C0115\n file.py:C0116,E0001\n```\n\n**pyproject.toml**\n```toml\n[tool.pylint.'messages control']\nper-file-ignores = [\n \"/folder_1/:missing-function-docstring,W0621,W0240,C0115\",\n \"file.py:C0116,E0001\"\n]\n```\n\n## Build and Publish\n\nThis project uses `setuptools` as the dependency management and build tool.\nTo publish a new release, follow these steps:\n* Update the version in the `pyproject.toml`\n* Add an entry in the changelog\n* Push a new tag like `vX.X.X` to trigger the release\n\n## Support, Feedback, Contributing\n\nThis project is open to feature requests/suggestions, bug reports etc. via [GitHub issues](https://github.com/SAP/pylint-per-file-ignores/issues). Contribution and feedback are encouraged and always welcome. For more information about how to contribute, the project structure, as well as additional contribution information, see our [Contribution Guidelines](CONTRIBUTING.md).\n\n## Security / Disclosure\nIf you find any bug that may be a security problem, please follow our instructions at [in our security policy](https://github.com/SAP/pylint-per-file-ignores/security/policy) on how to report it. Please do not create GitHub issues for security-related doubts or problems.\n\n## Code of Conduct\n\nWe as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone. By participating in this project, you agree to abide by its [Code of Conduct](https://github.com/SAP/.github/blob/main/CODE_OF_CONDUCT.md) at all times.\n\n## Licensing\n\nCopyright 2025 SAP SE or an SAP affiliate company and pylint-per-file-ignores contributors. Please see our [LICENSE](LICENSE) for copyright and license information. Detailed information including third-party components and their licensing/copyright information is available [via the REUSE tool](https://api.reuse.software/info/github.com/SAP/pylint-per-file-ignores).\n",
"bugtrack_url": null,
"license": null,
"summary": "A pylint plugin to ignore error codes per file.",
"version": "2.0.3",
"project_urls": null,
"split_keywords": [
"pylint",
" plugin",
" quality",
" linter"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "5543060e2bc2d3e2d22b9ebbd09eead63a89169e29b5185dcf8bcbdf479e9796",
"md5": "68837928a37a8c4cf8a67155d1c525dc",
"sha256": "72d4a1bae1209b21326ab8b5b958bb72f4d9ae6780fe099553f81580ce566692"
},
"downloads": -1,
"filename": "pylint_per_file_ignores-2.0.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "68837928a37a8c4cf8a67155d1c525dc",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4,>=3.9",
"size": 5459,
"upload_time": "2025-08-27T10:43:05",
"upload_time_iso_8601": "2025-08-27T10:43:05.593642Z",
"url": "https://files.pythonhosted.org/packages/55/43/060e2bc2d3e2d22b9ebbd09eead63a89169e29b5185dcf8bcbdf479e9796/pylint_per_file_ignores-2.0.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "d2657018b0b2919974e8cc3bf6b14ccd89dcfae63f31d890f2f66196446893ce",
"md5": "c19807b4002f181c1b4daf70bcb636a4",
"sha256": "64c1ef586e2f6ec3e12a05118639673e2467fda620fdc55dffc166a3fee3347c"
},
"downloads": -1,
"filename": "pylint_per_file_ignores-2.0.3.tar.gz",
"has_sig": false,
"md5_digest": "c19807b4002f181c1b4daf70bcb636a4",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4,>=3.9",
"size": 6060,
"upload_time": "2025-08-27T10:43:06",
"upload_time_iso_8601": "2025-08-27T10:43:06.602608Z",
"url": "https://files.pythonhosted.org/packages/d2/65/7018b0b2919974e8cc3bf6b14ccd89dcfae63f31d890f2f66196446893ce/pylint_per_file_ignores-2.0.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-08-27 10:43:06",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "pylint-per-file-ignores"
}