[](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
**.pylintrc**
```ini
[MAIN]
load-plugins =
pylint_per_file_ignores
```
**setup.cfg**
```ini
[pylint.MASTER]
load-plugins =
pylint_per_file_ignores
```
**pyproject.toml**
```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](https://docs.python.org/3/library/glob.html).
> Prior to v2.0.0, `pylint-per-file-ignores` did not use globs but regex.
> When migrating, please check your configuration carefully.
**.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"
]
```
## Development
This project uses `uv`.
To setup a venv for development use
`python3.14 -m venv venv && pip install uv && uv sync --all-groups && rm -rf venv/`.
Then use `source .venv/bin/activate` to activate your venv.
## 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.10",
"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/6a/dc/4588e9affbb7bbac3f14d11a7617db8e3f31669f319da03271f7f0332b09/pylint_per_file_ignores-3.1.0.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\n**.pylintrc**\n```ini\n[MAIN]\nload-plugins =\n pylint_per_file_ignores\n```\n\n**setup.cfg**\n```ini\n[pylint.MASTER]\nload-plugins =\n pylint_per_file_ignores\n```\n\n**pyproject.toml**\n```toml\n[tool.pylint.main]\nload-plugins = [\n \"pylint_per_file_ignores\",\n]\n```\n\n## Usage\nAdd list of patterns and codes you would like to ignore.\nThe patterns are matched using [globs](https://docs.python.org/3/library/glob.html).\n\n\n> Prior to v2.0.0, `pylint-per-file-ignores` did not use globs but regex.\n> When migrating, please check your configuration carefully.\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## Development\nThis project uses `uv`.\nTo setup a venv for development use\n`python3.14 -m venv venv && pip install uv && uv sync --all-groups && rm -rf venv/`.\nThen use `source .venv/bin/activate` to activate your venv.\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": "3.1.0",
"project_urls": null,
"split_keywords": [
"pylint",
" plugin",
" quality",
" linter"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "9d16c1054ad8f355749eef83a2b176fc545cc27b08b5dc2bf21420174325676e",
"md5": "9a4ebccc6e34db91f4f5b5c630877e08",
"sha256": "57cde138807a28a98f33edf85e687d88df3660d37c8d5d5d46de1f1e6fcc665d"
},
"downloads": -1,
"filename": "pylint_per_file_ignores-3.1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "9a4ebccc6e34db91f4f5b5c630877e08",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4,>=3.10",
"size": 5666,
"upload_time": "2025-10-13T08:21:50",
"upload_time_iso_8601": "2025-10-13T08:21:50.420448Z",
"url": "https://files.pythonhosted.org/packages/9d/16/c1054ad8f355749eef83a2b176fc545cc27b08b5dc2bf21420174325676e/pylint_per_file_ignores-3.1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "6adc4588e9affbb7bbac3f14d11a7617db8e3f31669f319da03271f7f0332b09",
"md5": "17d6ec6616e0f4996d0fcf27b459899e",
"sha256": "a11db907f74cfbd8956365c36b0d453daa20448e2aaada1033c52ba6f621c7d7"
},
"downloads": -1,
"filename": "pylint_per_file_ignores-3.1.0.tar.gz",
"has_sig": false,
"md5_digest": "17d6ec6616e0f4996d0fcf27b459899e",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4,>=3.10",
"size": 6616,
"upload_time": "2025-10-13T08:21:51",
"upload_time_iso_8601": "2025-10-13T08:21:51.403156Z",
"url": "https://files.pythonhosted.org/packages/6a/dc/4588e9affbb7bbac3f14d11a7617db8e3f31669f319da03271f7f0332b09/pylint_per_file_ignores-3.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-10-13 08:21:51",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "pylint-per-file-ignores"
}