Prek is a command-line tool that runs pre-commit hooks on a Git repository. It is a drop-in replacement for the pre-commit framework and reads the same configuration file, so developers who already use pre-commit can switch without rewriting their hook setup.
The tool is written in Rust, which is the main point of difference from the original Python implementation. It is distributed under the MIT license, and the source code is public on GitHub. The Windows package is available through winget.
Alternatives to Prek
Products that do a similar job in Developer Tools.
bat
command-line file viewer with syntax highlighting and git integration
openidea
Native Rust IDE with an IntelliJ-style keymap and built-in debugger
onefetch
Command-line tool that shows a summary of a Git repository
gitui
Keyboard-driven terminal interface for git repositories
gitoxide
Pure Rust implementation of Git with a command-line tool
lazygit
Terminal UI for running git commands with keyboard shortcuts
Alacritty
GPU-accelerated terminal emulator for Linux, macOS, Windows and BSD
GitHub CLI
Command line tool for working with GitHub from the terminal