zlacker

[return to "Prek: A better, faster, drop-in pre-commit replacement, engineered in Rust"]
1. teaear+rT[view] [source] 2026-02-03 20:11:18
>>fortui+(OP)
It doesn’t seem like this solves the main issues with pre-commit hooks. They are broken by design. Just to name 2, they run during rebase and aren’t compatible with commits that leave unstaged files in your tree.
◧◩
2. bradle+1l1[view] [source] 2026-02-03 22:31:14
>>teaear+rT
I leave unstaged files all the time, not sure what you mean.
◧◩◪
3. teaear+L02[view] [source] 2026-02-04 02:56:07
>>bradle+1l1
Without extra shenanigans if you have an unstaged file that fails your test suite then pre-commit will reject your commit even if the staged files are error free.
◧◩◪◨
4. bradle+9x5[view] [source] 2026-02-05 01:25:58
>>teaear+L02
Our stuff is configured to only run on staged files.
[go to top]