prek: a better `pre-commit`
14 points by kantord
14 points by kantord
I find it very frustrating that this is only tagged "vibecodding", and because it has already be "user corrected" (or in this case, maybe user sabotaged), it can't be changed again.
I tagged it as rust originally, not sure who retagged it as vibecoding and why
edit: and btw as far as I can tell, it has pretty much nothing to do with vibecoding
I've migrated a bunch of repositories from pre-commit to prek, it was easy and painless, just running the hooks is instant. For those that don't want to be hampered by commit hooks, you can just run all the hooks in CI anyways. You can see what the creators of uv, ruff, etc are doing on their own repo. With hook stages, you can also keep fast hooks for pre-commit and slower ones for manual or pre-push stages.
It can also be a lot simpler than that example, for instance just two steps: https://github.com/Tenzer/alga/blob/f3d85f62d055825044b60d78122ff0e0cd29683b/.github/workflows/checks.yml#L38
I've replaced pre-commit with prek everywhere and it's working a treat!
I'm not involved with this project but I tried it and had a really good experience. I was surprised to see that it was not posted here yet.
I really like pre-commit but unfortunately it never reached its true potential, mostly because it never reached the popularity it deserved.
I don't really think it needed a Rust rewrite for any technical reason... It's not like you couldn't make it just as performant in Python. But perhaps adding a native command is more palatable to non-Python teams. Or at least, more popular for whatever reason.
prek seems to be a painless drop-in replacement, and it already seems like it's gaining more widespread adoption even outside of the Python ecosystem. So I'm really excited to see where this greater popularity will take the concept.
I like what you’re doing here but I wonder if there’s an open issue on the lobsters repo and if it would make sense to do it automatically. In the end, the submission form is already listing them when you want to hit send.
I think it only shows if its the same site, and then it already shows up under the comments too, see e.g. here https://lobste.rs/s/3fevyk/fast_servers_interesting_pattern
My “previously” links aren’t completely brainless. In this instance I remembered there have been discussions recently and did a quick keyword search.