Skip to main content

REUSE status Coverage Status

Pylint Per File Ignores

This pylint plugin will enable per-file-ignores in your project!

The project was initially created by christopherpickering.

Install

pip install pylint-per-file-ignores

Add to Pylint Settings

.pylintrc

[MAIN]
load-plugins =
    pylint_per_file_ignores

setup.cfg

[pylint.MASTER]
load-plugins =
    pylint_per_file_ignores

pyproject.toml

[tool.pylint.main]
load-plugins = [
    "pylint_per_file_ignores",
]

Usage

Add a list of patterns and codes you would like to ignore following <file-pattern>:<code1>,<code2>. The patterns are matched using globs. Newlines between codes are supported.

Prior to v2.0.0, pylint-per-file-ignores did not use globs but regex. When migrating, please check your configuration carefully.

Please note, that if two patterns applies the same files, the last configuration will be used.

.pylintrc

[MESSAGES CONTROL]
per-file-ignores =
  /folder_1/*:missing-function-docstring,W0621,W0240,C0115
  file.py:C0116,E0001

setup.cfg

[pylint.MESSAGES CONTROL]
per-file-ignores =
  /folder_1/*:missing-function-docstring,W0621,W0240,C0115
  file.py:C0116,E0001

pyproject.toml

[tool.pylint.'messages control']
per-file-ignores = [
    "/folder_1/*:missing-function-docstring,W0621,W0240,C0115",
    "file.py:C0116,E0001"
]

Please note, that for non-toml files newlines are important. For example, the following won't parse as expected

[pylint.MESSAGES CONTROL]
per-file-ignores =
  /folder_1/*:missing-function-docstring,
    missing-class-docstring

Development

This project uses uv. To install uv, and setup a venv for development, use:

python3.14 -m venv venv && \
    source venv/bin/activate && \
    pip install uv && uv sync --all-groups && \
    deactivate  && \
    rm -rf venv/

This will create a temporary venv, install uv to bootstrap the project .venv, and remove the temporary venv again. Then use source .venv/bin/activate to activate your venv.

Build and Publish

Execute the release action with the proper version.

Support, Feedback, Contributing

This project is open to feature requests/suggestions, bug reports etc. via GitHub 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.

Security / Disclosure

If you find any bug that may be a security problem, please follow our instructions at in our 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 at all times.

Licensing

Copyright 2026 SAP SE or an SAP affiliate company and pylint-per-file-ignores contributors. Please see our LICENSE for copyright and license information. Detailed information including third-party components and their licensing/copyright information is available via the REUSE tool.

Metadata

Release files for pylint-per-file-ignores 4.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pylint-per-file-ignores 4.0.0
File Size Uploaded
pylint_per_file_ignores-4.0.0.tar.gz 94.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pylint-per-file-ignores 4.0.0
File Interpreter ABI Platform
pylint_per_file_ignores-4.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 100.7 kB

Release files / pylint_per_file_ignores-4.0.0.tar.gz

Download URL pylint_per_file_ignores-4.0.0.tar.gz
Size 94.7 kB
Tags Source
SHA-256 checksum
How to use checksums
0b685cc095c4a9cc37831c23d67c88fdd870c1c7df080c32f93cd5d8cc239cde
BLAKE2b-256 checksum
How to use checksums
602bb55895658f31982f39735cdb1633b6b72783e43dce6b7af5119d279d014a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 28, 2026.

Transparency log

Release files / pylint_per_file_ignores-4.0.0-py3-none-any.whl

Download URL pylint_per_file_ignores-4.0.0-py3-none-any.whl
Size 6.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e6dd0b1645632986b8481f6e7a1878cdd232de02ee6ce51059b2db6ab8c50955
BLAKE2b-256 checksum
How to use checksums
fb33d8204dc7048e1f8f7b836a54f734dbd01c28fd955c7b8f8a524878f5d642
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 28, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

4.0.0 This release

2 release files

3.2.1

2 release files

3.2.0

2 release files

3.1.0

2 release files

3.0.0

2 release files

2.0.3

2 release files

2.0.2

2 release files

2.0.0

2 release files

1.4.0

2 release files

1.3.2

2 release files

1.3.1

2 release files

1.3.0

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page