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.0
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.0-py3-none-win_arm64.whl | Python 3 | none | Windows ARM64 | Details |
| lefthook-2.2.0-py3-none-win_amd64.whl | Python 3 | none | Windows x86-64 | Details |
| lefthook-2.2.0-py3-none-manylinux_2_17_x86_64.whl | Python 3 | none | Linux glibc 2.17+ x86-64 | Details |
| lefthook-2.2.0-py3-none-manylinux_2_17_aarch64.whl | Python 3 | none | Linux glibc 2.17+ ARM64 | Details |
| lefthook-2.2.0-py3-none-macosx_11_0_arm64.whl | Python 3 | none | macOS 11.0+ ARM64 | Details |
| lefthook-2.2.0-py3-none-macosx_10_15_x86_64.whl | Python 3 | none | macOS 10.15+ x86-64 | Details |
Total release size: 31.3 MB
Release files / lefthook-2.2.0-py3-none-win_arm64.whl
| Download URL | lefthook-2.2.0-py3-none-win_arm64.whl |
|---|---|
| Size | 4.9 MB |
| Tags | Python 3 Windows ARM64 |
|
SHA-256 checksum How to use checksums |
c17a8af7d3924ce3e2a7be993d1a371265226674dfc8900f77693c34336e3619
|
|
BLAKE2b-256 checksum How to use checksums |
f5340df0d22c99c8c3a23f3931e4e6a9daaf26fdd6c26f29ddec84d5243b71cb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.23 {"installer":{"name":"uv","version":"0.12.23","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.0-py3-none-win_amd64.whl
| Download URL | lefthook-2.2.0-py3-none-win_amd64.whl |
|---|---|
| Size | 5.6 MB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
41d2f590170558ec990e5ae0cea48566dd3b81b8a19ad72fda16b50b864dc406
|
|
BLAKE2b-256 checksum How to use checksums |
616d17c2517783315bbd54bd11dae4a557de003f6ed0db96201ffa962e30e3cd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.23 {"installer":{"name":"uv","version":"0.12.23","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.0-py3-none-manylinux_2_17_x86_64.whl
| Download URL | lefthook-2.2.0-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 |
ce5a6beb9cd08fa46b7651668b70a9dc72f651c38bea5bf6eae6f23578d7eac6
|
|
BLAKE2b-256 checksum How to use checksums |
4e0bfa33be01f8b39535896f6b9cdae0130d15eb284e2983453399aeaafb7687
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.23 {"installer":{"name":"uv","version":"0.12.23","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.0-py3-none-manylinux_2_17_aarch64.whl
| Download URL | lefthook-2.2.0-py3-none-manylinux_2_17_aarch64.whl |
|---|---|
| Size | 4.8 MB |
| Tags | Linux glibc 2.17+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
a1057937fb6fc18f03e3333a0fe73ce4999a3709db8d64d5f2b4f69be6d8dc03
|
|
BLAKE2b-256 checksum How to use checksums |
7bd7b084c9502ceae0cdc6e13f5e759b6f6b275b2011428a3d1b0a8557d352b6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.23 {"installer":{"name":"uv","version":"0.12.23","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.0-py3-none-macosx_11_0_arm64.whl
| Download URL | lefthook-2.2.0-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 |
91555f90b31f0d0cda8043e69f9608647d1ca3a74262f030622b58f12ba74b0b
|
|
BLAKE2b-256 checksum How to use checksums |
1d1a142c0a4fc12905515a10908a3599a549d2be23e820cb6638decb71731709
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.23 {"installer":{"name":"uv","version":"0.12.23","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.0-py3-none-macosx_10_15_x86_64.whl
| Download URL | lefthook-2.2.0-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 |
6ba887d88ee0ee66f9d71a8d88904bcd6e2bc5c782ade62552e071afe79f31ed
|
|
BLAKE2b-256 checksum How to use checksums |
1c79ca580bf086be7d6b0b8bb4f1b8774037d3606722c7d7db07c938257a5213
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.23 {"installer":{"name":"uv","version":"0.12.23","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}
|