Skip to main content

Git hooks manager

Project description

hoox

Hoox is git hooks manager

Initialization

For initialization you shuld run init command in project root

hoox init

Optional arguments:

  • --directory or --d - directory to store hook scripts. Default is .hoox in project root.

You can use separate directory to store typical hooks for specific language.

In case of already initialized repository you will be prompted to rewrite hoox directory.

Show information

To show current hoox status, hoox directory and enabled hooks, you can run following command

hoox info

Command will show info:

Hoox dir: ./hoox
Enabled hooks:
  pre-commit
  pre-push

List of supported hooks

Hoox support folowing hooks in current version:

  • pre-commit
  • pre-push
  • commit-msg
  • prepare-commit-msg

Run hook

You can run hook for test purpose via

hoox run-hook <hook-name> [hook-arguments ...]

Enabling hooks

By default all hooks are disabled. To enable hook run

hoox enable <hook-name>

Enable hooks realized via adding .sh script that runs hoox run-hook <hook-name> [hook-arguments].

Disabling hookx

To disable hook run

hoox disable <hook-name>

Disable hooks realized via deleting .sh script from previous paragraph. Do not edit those scripts, cause you can lost all changes when hook is disabled.

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

hoox-0.0.5.tar.gz (4.0 kB view hashes)

Uploaded Source

Built Distribution

hoox-0.0.5-py3-none-any.whl (5.7 kB view hashes)

Uploaded Python 3

Supported by

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