Lefthook
The fastest polyglot Git hooks manager out there
A Git hooks manager for Node.js, Ruby and many other types of projects.
- Fast. It is written in Go. Can run commands in parallel.
- Powerful. It allows to control execution and files you pass to your commands.
- Simple. It is single dependency-free binary which can work in any environment.
Install
pip install lefthook
Usage
Configure your hooks, install them once and forget about it: rely on the magic underneath.
TL;DR
# Configure your hooks
vim lefthook.yml
# Install them to the git project
lefthook install
# Enjoy your work with git
git add -A && git commit -m '...'
More details
- Configuration for
lefthook.ymlconfig options. - Usage for lefthook CLI options, supported ENVs, and usage tips.
- Discussions for questions, ideas, suggestions.
Metadata
Release files for lefthook 2.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| lefthook-2.2.2-py3-none-win_arm64.whl | Python 3 | none | Windows ARM64 | Details |
| lefthook-2.2.2-py3-none-win_amd64.whl | Python 3 | none | Windows x86-64 | Details |
| lefthook-2.2.2-py3-none-manylinux_2_17_x86_64.whl | Python 3 | none | Linux glibc 2.17+ x86-64 | Details |
| lefthook-2.2.2-py3-none-manylinux_2_17_aarch64.whl | Python 3 | none | Linux glibc 2.17+ ARM64 | Details |
| lefthook-2.2.2-py3-none-macosx_11_0_arm64.whl | Python 3 | none | macOS 11.0+ ARM64 | Details |
| lefthook-2.2.2-py3-none-macosx_10_15_x86_64.whl | Python 3 | none | macOS 10.15+ x86-64 | Details |
Total release size: 31.4 MB
Release files / lefthook-2.2.2-py3-none-win_arm64.whl
| Download URL | lefthook-2.2.2-py3-none-win_arm64.whl |
|---|---|
| Size | 4.9 MB |
| Tags | Python 3 Windows ARM64 |
|
SHA-256 checksum How to use checksums |
fa6f5a0dee401516c47a9234896e9c39d32aef81f470adc771e832bc755e1d45
|
|
BLAKE2b-256 checksum How to use checksums |
b0a3d5de72a4cc31440080e1157c3bd044ec6842e01d2525a22d16a77cd69cae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.0 {"installer":{"name":"uv","version":"0.13.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / lefthook-2.2.2-py3-none-win_amd64.whl
| Download URL | lefthook-2.2.2-py3-none-win_amd64.whl |
|---|---|
| Size | 5.6 MB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
483864aa559e88e0803b7c3b020f5dbcfa14795e3479bf3a234411653a34544d
|
|
BLAKE2b-256 checksum How to use checksums |
062f718b941bdf01411945f044449fb8579b0382136c23f459e1832b6555c1dc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.0 {"installer":{"name":"uv","version":"0.13.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / lefthook-2.2.2-py3-none-manylinux_2_17_x86_64.whl
| Download URL | lefthook-2.2.2-py3-none-manylinux_2_17_x86_64.whl |
|---|---|
| Size | 5.4 MB |
| Tags | Linux glibc 2.17+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
a857391dabb8d9e039f3bf37097616fe8a729cdfb40a785d6ee55ebcf66b3845
|
|
BLAKE2b-256 checksum How to use checksums |
ea4fd74d121e660efc61c87cea24274d4bd65f18c669c1d30f32475ed67173e9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.0 {"installer":{"name":"uv","version":"0.13.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / lefthook-2.2.2-py3-none-manylinux_2_17_aarch64.whl
| Download URL | lefthook-2.2.2-py3-none-manylinux_2_17_aarch64.whl |
|---|---|
| Size | 4.9 MB |
| Tags | Linux glibc 2.17+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
effd6f196a3b1563311761a22293d34863670c14cb87287c0b30d0323150249f
|
|
BLAKE2b-256 checksum How to use checksums |
7ce67ca00aeebe980e3d60ebc2c222982aa2038a19792342f13b24877e69b3fd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.0 {"installer":{"name":"uv","version":"0.13.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / lefthook-2.2.2-py3-none-macosx_11_0_arm64.whl
| Download URL | lefthook-2.2.2-py3-none-macosx_11_0_arm64.whl |
|---|---|
| Size | 5.0 MB |
| Tags | Python 3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
96be288829fdaec6b3229724591ea0e3f16bb77b211fdd716af519c056ce11a9
|
|
BLAKE2b-256 checksum How to use checksums |
05cfdcc4a6b715f7eef4950c728e6ecbeeef224988418c1a7f3e14791ed4122a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.0 {"installer":{"name":"uv","version":"0.13.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / lefthook-2.2.2-py3-none-macosx_10_15_x86_64.whl
| Download URL | lefthook-2.2.2-py3-none-macosx_10_15_x86_64.whl |
|---|---|
| Size | 5.5 MB |
| Tags | Python 3 macOS 10.15+ x86-64 |
|
SHA-256 checksum How to use checksums |
43b0e8ee7c116f48f3f8d4d04074a526e01b44e04a093f66bd8791e78804b1f1
|
|
BLAKE2b-256 checksum How to use checksums |
fdff6ed1b98098fa680ff55a5f126d20ae7be2e2bb7e971d2598642755c847de
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.0 {"installer":{"name":"uv","version":"0.13.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|