feat: expose more options for lefthook

This commit is contained in:
eric
2026-03-15 16:51:49 +01:00
parent 0d339e2de0
commit 9983f0b8e9
5 changed files with 167 additions and 21 deletions

View File

@@ -74,6 +74,12 @@ outputs = { self, nixpkgs, repo-lib, ... }:
Checks are installed through `lefthook`, with `pre-commit` and `pre-push` commands configured to run in parallel.
For advanced Lefthook features, use raw `config.lefthook` or `perSystem.lefthook`. Those attrsets are merged after generated checks, so you can augment a generated command with fields that the simple `checks` abstraction does not carry, such as `stage_fixed`:
```nix
config.lefthook.pre-push.commands.tests.stage_fixed = true;
```
## Tool banners
Tools are declared once. Package-backed tools are added to the shell automatically, and both package-backed and command-backed tools are rendered in the startup banner.