macOS
brew install preklocal Homebrew formula metadata
sudo port install prekMacPorts ports tree · devel/prek/Portfile · 来源: api.github.com
安装
brew install preklocal Homebrew formula metadata
sudo port install prekMacPorts ports tree · devel/prek/Portfile · 来源: api.github.com
nix profile install nixpkgs#preknixpkgs package indexes · pkgs/by-name/pr/prek/package.nix · 来源: api.github.com
sudo zypper install prekopenSUSE Tumbleweed package metadata · prek · 来源: download.opensuse.org
scoop install main/prekScoop official bucket manifest trees · bucket/prek.json · 来源: api.github.com
winget install --id j178.Prek -eWindows Package Manager source index · j178.Prek · 来源: cdn.winget.microsoft.com
概览
Fast Git hook manager written in Rust, drop-in alternative to pre-commit
历史
prek is a fast Git-hook manager written in Rust and designed as a drop-in alternative to pre-commit. It runs repository hooks, installs Git hook scripts, updates hook revisions, and accepts pre-commit-style project configuration.
prek began as a Rust reimplementation and drop-in alternative to the Python-based pre-commit tool. Its changelog documents rapid compatibility work across hook languages and workflows; release 0.4.5 declared full language coverage relative to pre-commit and described the project as being on the path to 1.0.
The official site lists adoption by projects including Apache Airflow, Apache Lucene, Ruff, FastAPI, Sentry, and Godot. Package availability recorded in source_facts.package-manager spans Homebrew, MacPorts, Nix, Scoop, WinGet, and zypper.
Users normally place hook definitions in prek.toml or .pre-commit-config.yaml, run hooks explicitly during development or CI, and install prek into Git’s hook lifecycle. An optional platform-level prek.toml controls user settings rather than project hook definitions.
prek brings the increasingly familiar “fast rewrite in Rust” pattern to Git-hook management while preserving pre-commit configuration compatibility. Its multi-platform packaging and ability to reuse established hook ecosystems make it especially interesting to developers who want faster tooling without migrating every repository configuration.
安全态势
没有找到 prek 的匹配本地密钥处理 manifest。软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
prek.toml.pre-commit-config.yaml.pre-commit-config.yml$XDG_CONFIG_HOME/prek/prek.toml~/.config/prek/prek.toml%APPDATA%\prek\prek.toml可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
prek | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:prek |
|---|---|
| 版本 | 0.5.3 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/prek |
| 主页 | https://prek.j178.dev/ |
| 仓库 | https://github.com/j178/prek |
| 上游文档 | https://prek.j178.dev/ |
| 许可证 | MIT |
| 源码归档 | https://github.com/j178/prek/archive/refs/tags/v0.5.0.tar.gz |
| 最后更新 | 2026-09-16T03:48:46+02:00 |
| Pulse | updated |
| 构建依赖 | rust |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | prek |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
prek
nix profile install nixpkgs#prekprek 0.4.14-1.1
Reimagined version of pre-commit, built in Rust
sudo zypper install prekprek-bash-completion 0.4.14-1.1
Bash Completion for prek
sudo zypper install prek-bash-completionprek-fish-completion 0.4.14-1.1
Fish Completion for prek
sudo zypper install prek-fish-completionprek-zsh-completion 0.4.14-1.1
Zsh Completion for prek
sudo zypper install prek-zsh-completionprek
sudo port install prekmain/prek
scoop install main/prekj178.Prek
winget install --id j178.Prek -e来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.