Create git hooks with ease using a simple configuration file in a git project
Project description
python-githooks
Create git hooks with ease using a simple configuration file in a git project
Install
pip install python-githooks
Usage
- Create a
.githooks.iniconfiguration file(If not provided a dummy configuration file will be created). - Add sections based on
git hooks namesfollowed by acommandproperty with the shell code you want to run. - Run either
python -m python_githooksorgithooksin you virtual environment.
- 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.3.tar.gz
(2.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file python-githooks-1.0.3.tar.gz.
File metadata
- Download URL: python-githooks-1.0.3.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f272178119559a28e7051aad62000d344783124048efdab3678b8a8e8c18428e
|
|
| MD5 |
627611d6d51c0a2348086bbf978e5ecd
|
|
| BLAKE2b-256 |
9d1c4742316bcf7a9092fe443b80a97a03fea75e95c3b47b8b123fe7cc42dc01
|
File details
Details for the file python_githooks-1.0.3-py3-none-any.whl.
File metadata
- Download URL: python_githooks-1.0.3-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5c73ca9cb590938362e66c802254bfef033451e1d32202f685acc87daafdce74
|
|
| MD5 |
9cd17210d5d188576dd4177e77802776
|
|
| BLAKE2b-256 |
9d9c3fd3689b272908443964c208f2830f7a36c4021904dfea1a96207935b0cc
|