zlacker

[parent] [thread] 1 comments
1. forgot+(OP)[view] [source] 2026-02-03 17:18:07
Besides during commit, pre-commit/prek can run all hooks with `run`. So in CI/CD you can replace all discrete lint/format tool calls with one to pre-commit/prek. E.g. https://github.com/python/cpython/blob/main/.github/workflow....
replies(1): >>candid+u2
2. candid+u2[view] [source] 2026-02-03 17:28:57
>>forgot+(OP)
This just seems like calling a shell script with extra steps.

I have a shell utility similar to make that CI/CD calls for each step (like for step build, run make build) that abstracts stuff. I'd have Prek call this tool, I guess, but then I don't get what benefit there is here.

[go to top]