BSD Ports

devel/py-prek 0.5.3 DragonFly

Fast Git hook manager written in Rust, designed as a drop-in alternative to pre-commit

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
MIT
Categories
devel, python
Package size
4042.2 KiB, 13282.2 KiB installed

Description

pre-commit is a framework to run hooks written in many languages, and it manages the language toolchain and dependencies for running the hooks.

prek is a reimagined version of pre-commit, built in Rust. It is designed to be a faster, dependency-free and drop-in alternative for it, while also providing some additional long-requested features.

Features:

  • A single binary with no dependencies, does not require Python or any other runtime.
  • Faster than pre-commit and more efficient in disk space usage.
  • Fully compatible with the original pre-commit configurations and hooks.
  • Built-in support for monorepos (i.e. workspace mode).
  • Integration with uv for managing Python virtual environments and dependencies.
  • Improved toolchain installations for Python, Node.js, Bun, Go, Rust and Ruby, shared between hooks.
  • Built-in Rust-native implementation of some common hooks.

In the other systems

The newest version among them is 0.5.11, as upstream numbers it.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
DragonFlydevel/py-prek0.5.3 behind since 2026-11-01none known-[email protected]-
FreeBSDdevel/py-prek0.5.11 newestnone known-[email protected]2026-11-17
HardenedBSDdevel/py-prek0.5.4 behind since 2026-11-09no data-[email protected]-
GhostBSDdevel/py-prek0.5.3_1 behind since 2026-11-01no data-[email protected]-

Version history 1

  1. 0.5.3

Upstream's version as each commit to the port's Makefile set it, or as this site first saw it in the system's packages; the tree's own revisions are not versions here.

Install

Binary package:

pkg install py312-prek

From DPorts:

cd /usr/dports/devel/py-prek && make install clean

Dependency graph

Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.

Dependencies

Run dependencies 1

No port depends on this one.