Skip to main content

Create git hooks with ease using a simple configuration file in a git project

Project description

python-githooks

code linting: flake8 code quality: pytest MIT license CircleCI

Create git hooks with ease using a simple configuration file in a git project

Install

pip install python-githooks

Usage

  1. Create a .githooks.ini configuration file(If not provided a dummy configuration file will be created).
  2. Add sections based on git hooks names followed by a command property with the shell code you want to run.
  3. Run either python -m python_githooks or githooks in 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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

python_githooks-1.0.3-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

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

Hashes for python-githooks-1.0.3.tar.gz
Algorithm Hash digest
SHA256 f272178119559a28e7051aad62000d344783124048efdab3678b8a8e8c18428e
MD5 627611d6d51c0a2348086bbf978e5ecd
BLAKE2b-256 9d1c4742316bcf7a9092fe443b80a97a03fea75e95c3b47b8b123fe7cc42dc01

See more details on using hashes here.

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

Hashes for python_githooks-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5c73ca9cb590938362e66c802254bfef033451e1d32202f685acc87daafdce74
MD5 9cd17210d5d188576dd4177e77802776
BLAKE2b-256 9d9c3fd3689b272908443964c208f2830f7a36c4021904dfea1a96207935b0cc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page