You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Decision point surfaced by #634 (part of #625): the pre-commit cache layer is rebuilt on the Nix image, so pre-commit vs prek (both packaged in nixpkgs) is the natural choice to make there. Light reference — not superseded.
While fixing the BATS suite on the Nix toolchain (#695) we hit the broader
problem that several pre-commit hooks cannot run on a NixOS host because their
tools ship as generic-linux (manylinux) binaries: ruff, ruff-format, typos
(Rust wheels) and pymarkdown (its pyjson5 C-extension needs libstdc++).
That work is now tracked as #697 (binary hooks → flake) and #698 (pymarkdown).
How prek relates
prek is a runner replacement (a faster, single-binary, Python-bootstrap-free
reimplementation of pre-commit, compatible with .pre-commit-config.yaml). It
runs the same hook repos, so on its own it does not fix the NixOS binary
incompatibility — a ruff/typos manylinux wheel still won't execute under prek on NixOS. The compatibility fix (sourcing hook tools from the flake, #697)
is needed regardless of the runner.
The two tracks are complementary, and there's a natural ordering:
Re-scope from open-ended discussion to: "Evaluate/adopt prek as the pre-commit
runner after#697/#698 land," with a concrete spike (package prek from the
flake, run the suite, compare wall-clock and behaviour). Could be pulled under #625 if we want it in the migration epic.
Activity
gerchowl commentedon Feb 20, 2026
@c-vigo Should we target this for the 0.4 milestone, or keep it on the backlog for now?
c-vigo commentedon Feb 20, 2026
@gerchowl backlog
c-vigo commentedon Jun 23, 2026
Decision point surfaced by #634 (part of #625): the pre-commit cache layer is rebuilt on the Nix image, so
pre-commitvsprek(both packaged in nixpkgs) is the natural choice to make there. Light reference — not superseded.feat(nix): build the devcontainer image with buildLayeredImage (non-p…
c-vigo commentedon Jun 24, 2026
Context from the NixOS migration (#625)
While fixing the BATS suite on the Nix toolchain (#695) we hit the broader
problem that several pre-commit hooks cannot run on a NixOS host because their
tools ship as generic-linux (manylinux) binaries:
ruff,ruff-format,typos(Rust wheels) and
pymarkdown(itspyjson5C-extension needslibstdc++).That work is now tracked as #697 (binary hooks → flake) and #698 (pymarkdown).
How
prekrelatesprekis a runner replacement (a faster, single-binary, Python-bootstrap-freereimplementation of
pre-commit, compatible with.pre-commit-config.yaml). Itruns the same hook repos, so on its own it does not fix the NixOS binary
incompatibility — a
ruff/typosmanylinux wheel still won't execute underprekon NixOS. The compatibility fix (sourcing hook tools from the flake, #697)is needed regardless of the runner.
The two tracks are complementary, and there's a natural ordering:
the binary hooks into
language: systemhooks resolved from the dev-shell.prekbecomes a clean swap:prekis itself a single binary(packaged in
nixpkgs), so it drops the Python bootstrap the current runnerneeds, and it runs
language: systemhooks natively. Adoptingprekafter[BUG] pre-commit: source binary hooks (ruff, ruff-format, typos) from the flake for NixOS compatibility #697/[BUG] pre-commit: make the pymarkdown hook (pyjson5 C-extension / libstdc++) run on NixOS #698 is lower-risk and a bigger win (speed + one fewer Python dependency).
Suggested next step for this issue
Re-scope from open-ended discussion to: "Evaluate/adopt
prekas the pre-commitrunner after #697/#698 land," with a concrete spike (package
prekfrom theflake, run the suite, compare wall-clock and behaviour). Could be pulled under
#625 if we want it in the migration epic.
build: adopt git-hooks.nix + prek runner, expose checks.pre-commit, a…
c-vigo commentedon Jul 3, 2026
Closed in #791
chore: release 0.4.0 (#195)
chore: release 0.4.0 (#813)