prek: pre-commit, but fast

prek: pre-commit, but fast

September 16, 2025

pre-commit is an essential tool in my development workflow for running ruff and [other tools. However, nobody wants to wait for their commits to be saved, and pre-commit isn’t always the fastest.

prek is a Rust-based drop-in replacement that runs 10x faster while using half the disk space.

Replacing pre-commit with prek is painless:

  1. Install with uv tool install prek
  2. Run pre-commit uninstall && prek install

That’s it. No configuration changes, no compatibility issues.

Major projects like Apache Airflow, PDM, and OpenLineage have already adopted prek. It handles the same hook ecosystem as pre-commit but without the performance penalties. The 10x speed improvement alone justifies switching. Everything else is bonus.

Last updated on

Please submit corrections and feedback...