Create git hooks with ease using a simple configuration file
Project description
python-githooks
Create git hooks with ease using a simple configuration file
Install
pip install python-githooks
Usage
- Create a
.githooks.ini
configuration file(If not provided a dummy configuration file will be created). - Add sections based on
git hooks names
followed by acommand
property with the shell code you want to run. - Run either
python -m python_githooks
orgithooks
.
- Configuration file Example:
[pre-commit]
command = pytest --cov
[pre-push]
command = pytest --cov && flake8
License
python-githooks is MIT-licensed.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
python-githooks-1.0.0.tar.gz
(2.6 kB
view hashes)
Built Distribution
Close
Hashes for python_githooks-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ce2d01fac959a4a464253d64d09f510ab689db4c7fd41ced1eb6899c1b02c10 |
|
MD5 | ad9734a82dcaeb95ce2c0ab055e5fe9a |
|
BLAKE2b-256 | 76c8680b703cb8f572c5b1186f75fba18db42582d5f0f4ab846820fccf38fa84 |