| Port details |
- py-prek Fast Git hook manager written in Rust, designed as a drop-in alternative to pre-commit
- 0.3.11 devel
=0 Package not present on quarterly.This port was created during this quarter. It will be in the next quarterly branch but not the current one. - Maintainer: sunpoet@FreeBSD.org
 - Port Added: 2026-05-02 11:21:15
- Last Update: 2026-05-02 11:13:04
- Commit Hash: 54c65ff
- Also Listed In: python
- License: MIT
- WWW:
- https://prek.j178.dev/
- https://github.com/j178/prek
- 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.
 ¦ ¦ ¦ ¦ 
- Manual pages:
- FreshPorts has no man page information for this port.
- pkg-plist: as obtained via:
make generate-plist - There is no configure plist information for this port.
- USE_RC_SUBR (Service Scripts)
- no SUBR information found for this port
- Dependency lines:
-
- ${PYTHON_PKGNAMEPREFIX}prek>0:devel/py-prek@${PY_FLAVOR}
- To install the port:
- cd /usr/ports/devel/py-prek/ && make install clean
- To add the package, run one of these commands:
- pkg install devel/py-prek
- pkg install py311-prek
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above. NOTE: This is a Python port. Instead of py311-prek listed in the above command, you can pick from the names under the Packages section.- PKGNAME: py311-prek
- Package flavors (<flavor>: <package>)
- distinfo:
- TIMESTAMP = 1777572470
SHA256 (prek-0.3.11.tar.gz) = c4cf77848009503c58d80ff216e32af45b63ea49652bb5546748c1ebfd4d9847
SIZE (prek-0.3.11.tar.gz) = 433440
Packages (timestamps in pop-ups are UTC):
- Dependencies
- NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
- Build dependencies:
-
- py311-maturin>=1.0<2.0 : devel/py-maturin@py311
- rust>=1.95.0 : lang/rust
- cmake : devel/cmake-core
- pkgconf>=1.3.0_1 : devel/pkgconf
- python3.11 : lang/python311
- py311-build>=0 : devel/py-build@py311
- py311-installer>=0 : devel/py-installer@py311
- Test dependencies:
-
- python3.11 : lang/python311
- Runtime dependencies:
-
- python3.11 : lang/python311
- There are no ports dependent upon this port
Configuration Options:
- No options to configure
- Options name:
- devel_py-prek
- USES:
- cargo python
- FreshPorts was unable to extract/find any pkg message
- Master Sites:
|
| Commit History - (may be incomplete: for full details, see links to repositories near top of page) |
| Commit | Credits | Log message |
0.3.11 02 May 2026 11:13:04
    |
Po-Chuan Hsieh (sunpoet)  |
devel/py-prek: Add py-prek 0.3.11
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. |