prek-based pre-commit checks and flake checks #8

Merged
ava merged 2 commits from flori/prek into main 2026-07-02 20:10:45 +02:00
Owner

My vision for this repository is for it to turn into our single source of truth for all check declarations, linting rules, formatting configurations and these things. Downstream flakes import this one and, like they do currently, enable the modules they need for their project, such as our rust module.

This is a first step towards that. We replace pre-commit with prek, which is basically the same tool but heaps faster, more modern and RIIR. In this flake, pre-commit hooks can be defined and added using standardized syntax. In downstream consumers, the prek.toml will then dynamically be generated from the enabled/added hooks.

I barely have an idea about what I am doing in nix, but the approach is, I think, not dumb.

My vision for this repository is for it to turn into our single source of truth for all check declarations, linting rules, formatting configurations and these things. Downstream flakes import this one and, like they do currently, enable the modules they need for their project, such as our `rust` module. This is a first step towards that. We replace `pre-commit` with `prek`, which is basically the same tool but *heaps* faster, more modern and RIIR. In this flake, pre-commit hooks can be defined and added using standardized syntax. In downstream consumers, the `prek.toml` will then dynamically be generated from the enabled/added hooks. I barely have an idea about what I am doing in nix, but the approach is, I think, not dumb.
ava force-pushed flori/prek from 4eb2dfafea to 84ac1a1029 2026-07-02 20:10:24 +02:00 Compare
ava merged commit 84ac1a1029 into main 2026-07-02 20:10:45 +02:00
ava deleted branch flori/prek 2026-07-02 20:10:46 +02:00
Sign in to join this conversation.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
polyphony/workflows!8
No description provided.