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.1.17
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.1.17-py3-none-win_arm64.whl | Python 3 | none | Windows ARM64 | Details |
| lefthook-2.1.17-py3-none-win_amd64.whl | Python 3 | none | Windows x86-64 | Details |
| lefthook-2.1.17-py3-none-manylinux_2_17_x86_64.whl | Python 3 | none | Linux glibc 2.17+ x86-64 | Details |
| lefthook-2.1.17-py3-none-manylinux_2_17_aarch64.whl | Python 3 | none | Linux glibc 2.17+ ARM64 | Details |
| lefthook-2.1.17-py3-none-macosx_11_0_arm64.whl | Python 3 | none | macOS 11.0+ ARM64 | Details |
| lefthook-2.1.17-py3-none-macosx_10_15_x86_64.whl | Python 3 | none | macOS 10.15+ x86-64 | Details |
Total release size: 31.0 MB
Release files / lefthook-2.1.17-py3-none-win_arm64.whl
| Download URL | lefthook-2.1.17-py3-none-win_arm64.whl |
|---|---|
| Size | 4.9 MB |
| Tags | Python 3 Windows ARM64 |
|
SHA-256 checksum How to use checksums |
83035a1e902c76295c4e2b80ceb38a4a1928e1d888ed81d3e7b0dede1397a3e7
|
|
BLAKE2b-256 checksum How to use checksums |
7daf8c4c93349d1ced1bb51f08fbb3d3d5714abbcc3dc20d322311cf9abdd471
|
| 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.1.17-py3-none-win_amd64.whl
| Download URL | lefthook-2.1.17-py3-none-win_amd64.whl |
|---|---|
| Size | 5.5 MB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
fbf76ad507b6d77af021a818e897c9c8071a77566081def5e2242f68f55b8da8
|
|
BLAKE2b-256 checksum How to use checksums |
3fac006681926a87602b43fe34698d3a04bd50f750388bafee7bc1711a72cd64
|
| 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.1.17-py3-none-manylinux_2_17_x86_64.whl
| Download URL | lefthook-2.1.17-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 |
e5b4ad680d6d141abd7be5e1cf29dde285e2c5fc60d7170b6bcde9874dd1cfb4
|
|
BLAKE2b-256 checksum How to use checksums |
06aefc4c0d2bbcd386ea4a2bc6c8296747786b54ebce004f1935fa137a61d606
|
| 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.1.17-py3-none-manylinux_2_17_aarch64.whl
| Download URL | lefthook-2.1.17-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 |
05e913e5bad044a50b105de6bfa077f082cd0c5e78a7de758840362f8cf4c698
|
|
BLAKE2b-256 checksum How to use checksums |
0c5d0ffb1d67b25c625797dfac31fe269a9bc14c8719b07772b8772b4a7735dc
|
| 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.1.17-py3-none-macosx_11_0_arm64.whl
| Download URL | lefthook-2.1.17-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 |
8faa20d78977bb3c5176d04c151c19060280a47448f339e19c0a61be32c9f143
|
|
BLAKE2b-256 checksum How to use checksums |
a22202c06debb039dbfd3f7e5cfb0b3f81efa49b6271a2cf5887e717ac34b165
|
| 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.1.17-py3-none-macosx_10_15_x86_64.whl
| Download URL | lefthook-2.1.17-py3-none-macosx_10_15_x86_64.whl |
|---|---|
| Size | 5.4 MB |
| Tags | Python 3 macOS 10.15+ x86-64 |
|
SHA-256 checksum How to use checksums |
53dc47b923127867010e68c324e09bbd455463954f7629c88102faa01dbdf61a
|
|
BLAKE2b-256 checksum How to use checksums |
30ab1d5364eb167e0bbdb7894d453fe8f25973087b3c680837d2cc5639fb71d5
|
| 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}
|