No description
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-12-03 14:33:48 -05:00
.github/workflows Initial pre-commit mirror scaffolding for alint 2026-09-03 21:19:02 -04:00
.pre-commit-hooks.yaml Initial pre-commit mirror scaffolding for alint 2026-09-03 21:19:02 -04:00
LICENSE Initial pre-commit mirror scaffolding for alint 2026-09-03 21:19:02 -04:00
mirror.py Initial pre-commit mirror scaffolding for alint 2026-09-03 21:19:02 -04:00
pyproject.toml chore: update repository URLs for zeropier org migration 2026-12-03 14:33:48 -05:00
README.md chore: update repository URLs for zeropier org migration 2026-12-03 14:33:48 -05:00

alint-pre-commit

A pre-commit hook mirror for alint, the repository-structure linter. It installs the prebuilt alint wheel from PyPI (fast, no Rust toolchain) and exposes alint's hooks.

Usage

Add to your .pre-commit-config.yaml:

repos:
  - repo: https://github.com/zeropier/alint-pre-commit
    rev: v0.16.1 # replace with the latest tag, or run `pre-commit autoupdate`
    hooks:
      - id: alint # `alint check` (non-mutating)
      # - id: alint-fix   # `alint fix` (mutating; runs only on the manual stage)

Then:

pre-commit run --all-files

alint reads .alint.yml at your repo root and walks the tree honoring .gitignore. The same hook works for any language's repository, since alint lints structure, not code.

What this repo is

It carries no alint source. It is a thin language: python front-end whose pyproject.toml pins alint==<version>; pre-commit installs that wheel into the hook environment and runs the alint binary from it. This is the same model ruff-pre-commit uses for ruff.

mirror.py (run daily by CI, and on demand) re-pins to the newest alint on PyPI and tags v<version>, so a rev only ever points at a version whose wheel is live. Tags appear once alint is published to PyPI.

License

This mirror's glue is MIT (see LICENSE). alint itself is dual-licensed MIT OR Apache-2.0.