Better pre-commit, re-engineered in Rust
8 days ago
- #rust
- #development-tools
- #git-hooks
- prek is a Rust-based, faster, and dependency-free alternative to pre-commit.
- Features include a single binary, faster performance, compatibility with pre-commit configurations, and monorepo support.
- Uses uv for Python virtual environments and offers improved toolchain installations for multiple languages.
- Provides a better user experience with no need for Python runtime, automatic Python version management, and workspace support.
- Includes nifty improvements like running hooks for specific directories, last commit changes, and listing available hooks.
- Already used by projects like Airflow, PDM, and OpenLineage.
- Getting started guides include installation, quickstart, configuration, and debugging tips.