assert-no-linter-config-files
A command-line tool that asserts there are no configuration files (or embedded configuration sections) for common linters in your codebase. This is useful for enforcing that linter configurations are managed centrally rather than in individual repositories.
Installation
pip install assert-no-linter-config-files
Or install from source:
pip install -e .
Usage
assert-no-linter-config-files --linters LINTERS [OPTIONS] DIRECTORY [DIRECTORY ...]
Required Arguments
--linters LINTERS- Comma-separated linters to check:pylint,mypy,pytest,yamllint,jscpdDIRECTORY- One or more directories to scan
Optional Arguments
--exclude PATTERN- Glob pattern to exclude paths (repeatable)--quiet- Suppress output, exit code only--count- Print finding count only--json- Output findings as JSON--fail-fast- Exit on first finding--warn-only- Always exit 0, report only
Exit Codes
0- No linter configuration found (or--warn-only)1- One or more linter configurations found2- Usage/runtime error (invalid args, unreadable files)
Examples
Check for pylint and mypy configs in the current directory:
assert-no-linter-config-files --linters pylint,mypy .
Check specific directories:
assert-no-linter-config-files --linters pylint,mypy src/ tests/
Check all linters:
assert-no-linter-config-files --linters pylint,mypy,pytest,yamllint,jscpd .
Exclude vendor directories:
assert-no-linter-config-files --linters pylint,mypy \
--exclude "*vendor*" --exclude "*node_modules*" .
Get JSON output for CI integration:
assert-no-linter-config-files --linters pylint --json . | jq .
Use in CI to enforce no local linter configs:
assert-no-linter-config-files --linters pylint,mypy . || exit 1
What It Checks
Dedicated Config Files
The tool flags the presence of these files anywhere in the scanned tree:
pylint: .pylintrc, pylintrc, .pylintrc.toml
pytest: pytest.ini
mypy: mypy.ini, .mypy.ini
yamllint: .yamllint, .yamllint.yml, .yamllint.yaml
jscpd: .jscpd.json, .jscpd.yml, .jscpd.yaml, .jscpd.toml,
.jscpdrc, .jscpdrc.json, .jscpdrc.yml, .jscpdrc.yaml
Embedded Config Sections
The tool also checks shared config files for tool-specific sections:
pyproject.toml:
[tool.pylint]or[tool.pylint.*][tool.mypy][tool.pytest.ini_options][tool.jscpd][tool.yamllint]
setup.cfg:
[mypy][tool:pytest]- Any section containing "pylint"
tox.ini:
[pytest]or[tool:pytest][mypy]- Any section containing "pylint"
Output Format
When findings are detected, each is printed on a separate line:
<path>:<tool>:<reason>
Examples:
./pytest.ini:pytest:config file
./pyproject.toml:mypy:tool.mypy section
./setup.cfg:pylint:pylint.messages_control section
With --json:
[{"path": "./pytest.ini", "tool": "pytest", "reason": "config file"}]
CI Checks
The following checks run on every push and pull request:
- yamllint - YAML linting for workflow files
- markdownlint - Markdown linting
- pylint - Python linting for source and test code
- mypy - Static type checking for source code
- jscpd - Duplicate code detection
- pytest - Unit, integration, and E2E tests
Metadata
Release files for assert-no-linter-config-files 20260103184015
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| assert_no_linter_config_files-20260103184015.tar.gz | 26.8 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| assert_no_linter_config_files-20260103184015-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 39.3 kB
Release files / assert_no_linter_config_files-20260103184015.tar.gz
| Download URL | assert_no_linter_config_files-20260103184015.tar.gz |
|---|---|
| Size | 26.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4058145dc7c3d49baa2f91d3c5f4361c9a48d67148edeaca45f0cb61ca5cc245
|
|
BLAKE2b-256 checksum How to use checksums |
102e17d52bd2723a1281aaa00147a392a6c52de58b9d2b4c4307f6b261558ffd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Jan 3, 2026.
Transparency logRelease files / assert_no_linter_config_files-20260103184015-py3-none-any.whl
| Download URL | assert_no_linter_config_files-20260103184015-py3-none-any.whl |
|---|---|
| Size | 12.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
59cbcbb69d5bf36b4ebce83d4772ae80c16bdc2e91252591faa9c2a1c8f08122
|
|
BLAKE2b-256 checksum How to use checksums |
31a8bd17c5b8a4c4a755744b7a855d63ab687a98aa83a69adab9d3e5ddb9d257
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Jan 3, 2026.
Transparency logSecurity for assert-no-linter-config-files 20260103184015
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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for assert_no_linter_config_files-20260103184015.tar.gz
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 Jan 3, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.