zonito / command-hook

Precommit command hook : Run any command at pre commit.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Command Hook Pre-Commit

Hook any unit test / set up script / update env command before commits.

A few useful git hooks to integrate with pre-commit.

Check Appendix E. Exit Codes With Special Meanings

Using command-hook with pre-commit

Add this to your .pre-commit-config.yaml:

-   repo: https://github.com/zonito/command-hook.git
    sha: ''  # Use the sha you want to point at
    hooks:
    -   id: command
        args: [--command, '<EXECUTE UNITTEST COMMAND BEFORE COMMIT>']

About

Precommit command hook : Run any command at pre commit.

License:Apache License 2.0


Languages

Language:Python 100.0%