devel/py-prek 0.5.3_1 FreeBSD
Fast Git hook manager written in Rust, designed as a drop-in alternative to pre-commit
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- Last update
- Commit
9c878207a1- License
- MIT
- Categories
- devel, python
- Package size
- 4156.0 KiB, 10994.1 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.
Install
Binary package:
pkg install py312-prek
From the ports tree:
cd /usr/ports/devel/py-prek/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= py312-prek>0:devel/py-prek
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 0.5.3 | 0.5.3_1 | - | - | 0.5.3_1 |
| FreeBSD:14:quarterly | 0.5.3 | 0.5.3 | n/a | - | 0.5.3 |
| FreeBSD:15:latest | 0.5.3_1 | 0.5.3_1 | n/a | - | - |
| FreeBSD:15:quarterly | 0.5.3 | 0.5.3 | n/a | n/a | n/a |
| FreeBSD:16:latest | 0.5.3 | 0.5.3_1 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
As this port's Makefile names them.
Build 1
${PYTHON_PKGNAMEPREFIX}maturin>=1.0<2.0: devel/py-maturin
The full lists below include those, and their dependencies in turn.
Build dependencies 29
- archivers/brotli
- archivers/liblz4
- archivers/zstd
- devel/cmake-core
- devel/gettext-runtime
- devel/jsoncpp
- devel/libffi
- devel/libunistring
- devel/libuv
- devel/pkgconf
- devel/py-build
- devel/py-installer
- devel/py-maturin
- devel/py-packaging
- devel/py-pyproject-hooks
- devel/readline
- dns/libidn2
- dns/libpsl
- ftp/curl
- lang/python312
- lang/python315
- lang/rust
- math/mpdecimal
- ports-mgmt/pkg
- print/indexinfo
- security/libssh2
- security/rhash
- textproc/expat2
- www/libnghttp2
Run dependencies 7
No port depends on this one.
Configuration
No options to configure.
- USES
- cargo python
- Service scripts
- none
Files
distinfo 398
| File | Size | SHA256 |
|---|---|---|
| prek-0.5.3.tar.gz | 551929 | 06d88bed9a5b2886cd3796957e4cecf05fa9b06724b625df31dbf0a48ff2330c |
| rust/crates/addr2line-0.25.1.crate | 43134 | 1b5d307320b3181d6d7954e663bd7c774a838b8220fe0593c86d9fb09f498b4b |
| rust/crates/adler2-2.0.1.crate | 13366 | 320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa |
| rust/crates/ahash-0.8.12.crate | 43413 | 5a15f179cd60c4584b8a8c596927aadc462e27f2ca70c04e0071964a73ba7a75 |
| rust/crates/aho-corasick-1.1.5.crate | 184315 | c982642fa9e8606056828ee9a8505737230110bb1099153c79efe865c59d12ba |
| rust/crates/aligned-vec-0.6.4.crate | 12609 | dc890384c8602f339876ded803c97ad529f3842aba97f6392b3dba0dd171769b |
| rust/crates/annotate-snippets-0.12.16.crate | 56108 | f211a51805bc641f3ad5b7664c77d2547af685cc33b4cd8d31964027a46f13f1 |
| rust/crates/anstream-1.0.0.crate | 28916 | 824a212faf96e9acacdbd09febd34438f8f711fb84e09a8916013cd7815ca28d |
| rust/crates/anstyle-1.0.14.crate | 17787 | 940b3a0ca603d1eade50a4846a2afffd5ef57a9feac2c0e2ec2e14f9ead76000 |
| rust/crates/anstyle-parse-1.0.0.crate | 22042 | 52ce7f38b242319f7cabaa6813055467063ecdc9d355bbb4ce0c68908cd8130e |
| rust/crates/anstyle-query-1.1.5.crate | 10264 | 40c48f72fd53cd289104fc64099abca73db4166ad86ea0b4341abe65af83dadc |
| rust/crates/anstyle-wincon-3.0.11.crate | 12638 | 291e6a250ff86cd4a820112fb8898808a366d8f9f58ce16d1f538353ad55747d |
| rust/crates/anyhow-1.0.104.crate | 48819 | 330a5ed07fa54e4702c9d6c4174f74427fc0ef6e214bbd677ae50a5099946470 |
| rust/crates/ar_archive_writer-0.5.2.crate | 85297 | 4087686b4b0a3427190bae57a1d9a478dbb2d40c5dc1bd6e2b6d797913bdd348 |
| rust/crates/arraydeque-0.5.1.crate | 17671 | 7d902e3d592a523def97af8f317b08ce16b7ab854c1985a0c671e6f15cebc236 |
| rust/crates/arrayvec-0.7.7.crate | 33192 | f02882884d3e1bc524fb12c79f107f6ad0e1cfd498c536ffb494301740995dfe |
| rust/crates/assert_cmd-2.2.2.crate | 27683 | 2aa3a22042e45de04255c7bf3626e239f450200fd0493c1e382263544b20aea6 |
| rust/crates/assert_fs-1.1.4.crate | 18946 | 6ecf5c70ca07b7f80220bce936f0556a960ca6fb00fc2bd4125b5e581b218137 |
| rust/crates/astral-tokio-tar-0.7.0.crate | 82650 | 6f2e989b33246fe9240d39accf4dd9a01e0b6c1f3ce9dd095e0a47fa02505523 |
| rust/crates/astral_async_zip-0.0.21.crate | 92088 | 13f4a9bc6289d907c8e883d25026a54751d686da9926af271d0fc4cbe58a7f4d |
Master sites 1
- PYPI