Skip to main content

A pylint plugin to ignore error codes per file.

Project description

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 list of patterns and codes you would like to ignore. The patterns are matched using globs.

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

.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"
]

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

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.

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

pylint_per_file_ignores-3.2.1.tar.gz (81.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pylint_per_file_ignores-3.2.1-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file pylint_per_file_ignores-3.2.1.tar.gz.

File metadata

  • Download URL: pylint_per_file_ignores-3.2.1.tar.gz
  • Upload date:
  • Size: 81.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pylint_per_file_ignores-3.2.1.tar.gz
Algorithm Hash digest
SHA256 0a89f3cdc6fa09244a3f5624ad977ac9b026f0b25b2adb48c97c080da8d858f9
MD5 a9d132535eabab6bb9cb405da8ecdd0b
BLAKE2b-256 0cbc6d40a3596f91ef23fca7b89983b78bf4b3686323fd98e44e53ae365b1880

See more details on using hashes here.

Provenance

The following attestation bundles were made for pylint_per_file_ignores-3.2.1.tar.gz:

Publisher: release.yml on SAP/pylint-per-file-ignores

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pylint_per_file_ignores-3.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for pylint_per_file_ignores-3.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 aaac8b118791e742ccf7baaf42346978f6cd0440a9090d4087fc8ff26e4a31f2
MD5 85b1decce9e81cfbd5ea2c824b61958d
BLAKE2b-256 ff682b0cc27b549fd788caae254752910fe7222ac47c71627c60926895fe8960

See more details on using hashes here.

Provenance

The following attestation bundles were made for pylint_per_file_ignores-3.2.1-py3-none-any.whl:

Publisher: release.yml on SAP/pylint-per-file-ignores

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page