j178/prek: ⚡ A fast Git hook manager written in Rust, designed as a drop-in alternative to pre-commit

3 phút đọc

j178/prek: ⚡ A fast Git hook manager written in Rust, designed as a drop-in alternative to pre-commit – Repository j178/prek. Mô tả: ⚡ A fast Git hook manager written in Rust, designed as a drop-in alternative to pre-commit, reimagined.. 8502 stars, 243 forks, ngôn ngữ chính Rust, cập nhật 2026-09-28.

1. Repository làm gì?

Installation • Quick start • Documentation

prek is a framework for running hooks on your code. It runs them before you commit changes, on demand, or in CI. These hooks can format files, catch lint errors, detect secrets, or run any other command your project defines. prek also installs and manages the tools and dependencies they need.

You may already be familiar with the pre-commit tool. prek is a reimagined version of it, built in Rust. It is faster and distributed as a single binary with no runtime dependencies. It is fully compatible with pre-commit configurations and hooks, so you can use it as a drop-in replacement without changing your setup.

Although prek is pretty new, it’s already powering real‑world projects like CPython, Apache Airflow, FastAPI, and more projects are picking it up—see Who is using prek?. If you’re looking for an alternative to pre-commit, please give it a try—we’d love your feedback!

prek provides a standalone installer script to download and install the tool,

prek is published as Python binary wheel to PyPI, you can install it using pip, uv (recommended), or pipx:

2. Dữ liệu và cấu trúc đáng chú ý

To use prek with mise (v2025.8.11 or later):

Install pre-compiled binaries from GitHub using cargo-binstall:

Build from source using Cargo (Rust 1.96+ is required):

prek is published as a Node.js package and can be installed with any npm-compatible package manager:

prek is available as prek via conda-forge.

prek is available via MacPorts.

Pre-built binaries are available for download from the GitHub releases page.

3. Khả năng ứng dụng và giới hạn

prek can be used in GitHub Actions via the j178/prek-action repository.

This action installs prek and runs prek run –all-files on your repository.

prek is also available via taiki-e/install-action for installing various tools.

To let agents use prek, install the prek skill with gh skill (v2.90.0+):

If installed via the standalone installer, prek can update itself to the latest version:

prek includes security-focused safeguards

For more detailed improvements prek offers, take a look at Difference from pre-commit.

prek is pretty new, but it is already being used or recommended by some projects and organizations. GitHub stars are current as of April 15, 2026.

For a more comprehensive list of open-source projects using prek see the list of dependents on github.

Số liệu repository có thể thay đổi; nên mở liên kết nguồn để kiểm tra README, giấy phép và trạng thái phát hành.

Nguồn tham khảo: Xem bài gốc

📆
Âm Lịch: 18/8
Ất Tỵ

📆 Lịch Âm Dương NsN

×
Hôm Nay - Thứ Hai
Âm Lịch: 18 Tháng 8
Năm Bính Ngọ
📌 Ngày Can Chi: Ất Tỵ
✨ Giờ Hoàng Đạo: Sửu (1-3), Thìn (7-9), Ngọ (11-13), Mùi (13-15), Tuất (19-21), Hợi (21-23)
Vĩnh Phúc (Liên Bảo - Vĩnh Yên)
28°C
Nắng Đẹp
💧 84% | 💨 13 km/h
Hôm nay 33°
29/09 34°
30/09 34°
01/10 33°
02/10 32°