Better pre-commit, re-engineered in Rust
Mood
thoughtful
Sentiment
mixed
Category
tech
Key topics
pre-commit hooks
Rust
developer tools
A new Rust-based pre-commit tool, 'prek', is introduced as a potentially faster alternative to the existing 'pre-commit' framework, sparking discussion about its benefits and drawbacks.
Snapshot generated from the HN discussion
Discussion Activity
Active discussionFirst comment
N/A
Peak period
15
Day 5
Avg / period
8
Based on 16 loaded comments
Key moments
- 01Story posted
11/14/2025, 7:46:24 PM
5d ago
Step 01 - 02First comment
11/14/2025, 7:46:24 PM
0s after posting
Step 02 - 03Peak activity
15 comments in Day 5
Hottest window of the conversation
Step 03 - 04Latest activity
11/19/2025, 5:11:04 PM
2h ago
Step 04
Generating AI Summary...
Analyzing up to 500 comments to identify key contributors and discussion patterns
https://github.com/tox-dev/pre-commit-uv/discussions/51
The pre-commit author was straight up hostile to discussions of uv support and ended up deleting the issue I started and banned me from the GH repo. Weirdest OSS experience I've ever had.
> pre-commit is a framework to run hooks written in many languages, and it manages the language toolchain and dependencies for running the hooks
The “and” here are the main annoyances with pre-commit. It does too many things, which would each be best served by a separate tool.
As a developer working on a project, I already have mechanisms to set up a development environment. Having pre-commit install another copy of the dev environment is redundant, and typically necessitates duplicating dependency declarations too.
I’d much rather see a tool that focuses on running commit hooks, while leaving dependency management to another tool. Most projects already have something in place anyway, since dependencies are necessary for development beyond the scope of pre-commit hooks.
The really useful part of pre-commit is that it: (1) only runs hooks based on file that changed and (2) stashes all unstaged changes and untracked files.
We use that pattern for almost all our projects. Example: https://github.com/level12/coppy
For me, I would say the most intriguing feature is no Python dependencies.
2 more comments available on Hacker News
Want the full context?
Jump to the original sources
Read the primary article or dive into the live Hacker News thread when you're ready.