alinter
A universal, config-driven linter. Rules are data, not code, and language support ships as presets — so you can lint any language, format, or bespoke DSL with one tool and one config, without changing the linter.
- 🧩 Language agnostic — rules are plain YAML/JSON/TOML.
- 📦 Presets, not rebuilds — add a language by dropping in a file.
- ✍️ Your rules, anywhere — one-off checks for obscure formats are trivial.
- 🔧 Auto-fix — whitespace, newlines, line endings, and patterns.
- 📊 Many outputs —
text,json,sarif,junit,github. - 🪝 Plugins — custom check types via entry points.
Install
pip install alinter
Python 3.9+ and PyYAML (plus tomli on older Pythons). Optional extras:
alinter[gitignore] for .gitignore-aware discovery, alinter[xml] to harden
XML parsing with defusedxml.
Quick start
alinter # lint the current directory
alinter check src/ # lint specific paths
alinter init # write a starter .alinter.yaml
alinter --fix # apply automatic fixes
alinter --format sarif > alinter.sarif
How it works
Discover files → detect each file's language (extension, name, or shebang) →
select the rules that apply (always-on baseline + matching language presets +
your own) → run each check → report, optionally fixing. See
docs/how-it-works.md.
Configuration
alinter reads .alinter.yaml, alinter.yml, .alinter.json, .alinter.toml,
or a [tool.alinter] table in pyproject.toml, walking up from the working
directory. A global config at ~/.config/alinter/config.yaml is merged
underneath. A minimal config:
version: 1
extends: [python, yaml] # force extra presets on
exclude: ["**/vendor/**"]
ignore: ["generic/line-ending"] # turn rules off by id (globs ok)
rules:
- id: custom/no-todo
type: regex
pattern: '\b(TODO|FIXME)\b'
mode: forbidden
severity: info
message: "unresolved {match} marker"
A rule entry without a type overrides an existing rule by id. Full details
are in docs/configuration.md and
docs/rules.md. Run alinter presets, alinter types, and
alinter --help for the live reference.
Documentation
Everything else lives in docs/:
- How it works · Configuration · Rules
- Checks · Presets · Suppressions
- Plugins · Reporters · CLI
- Python API · Development · FAQ
Contributors should also read AGENTS.md,
CONTRIBUTING.md, and SECURITY.md.
License
MIT © baba01hacker
Metadata
Release files for alinter 0.1.0
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 | Actions |
|---|---|---|---|---|
| alinter-0.1.0.tar.gz | 93.0 kB | With provenance | Details for alinter-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| alinter-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for alinter-0.1.0-py3-none-any.whl |
Total release size: 171.5 kB
Release files / alinter-0.1.0.tar.gz
| Download URL | alinter-0.1.0.tar.gz |
|---|---|
| Size | 93.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b34f2d93da273254131591e97fa20fe2e09eaac386564216b4b6b84603967b86
|
|
BLAKE2b-256 checksum How to use checksums |
803c583abb6e95ec0a207c9c8ff40c27b0cfc145201d7cfc1e024a1fa56a941b
|
| 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 Oct 19, 2026.
Transparency logRelease files / alinter-0.1.0-py3-none-any.whl
| Download URL | alinter-0.1.0-py3-none-any.whl |
|---|---|
| Size | 78.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9e7f55a653d8fffc11da175ebc1ac040c573a92fdc5dada597b1381acb0a7aad
|
|
BLAKE2b-256 checksum How to use checksums |
d72d8c134695ad0687459b08233948936c50a939953eb2820cb47b470b32a3dd
|
| 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 Oct 19, 2026.
Transparency logSecurity for alinter 0.1.0
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
Both files in this release have been uploaded with provenance metadata.
Attestation for alinter-0.1.0.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 Oct 19, 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.