Library for managing and writing git hooks in Python

Autohooks

Library for managing and writing git hooks in Python.

Looking for automatic formatting or linting, e.g., with black and pylint, while creating a git commit using a pure Python implementation? Welcome to autohooks!

Why?

Several outstanding libraries for managing and executing git hooks exist already.
To name a few: husky,
lint-staged,
precise-commits or
pre-commit.

However, they either need another interpreter besides python (like husky) or are
too ambiguous (like pre-commit). pre-commit is written in python but has support
hooks written in all kind of languages. Additionally, it maintains the dependencies by
itself and does not install them in the current environment.

Solution

autohooks is a pure python library that installs a minimal
executable git hook.
It allows the decision of how to maintain the hook dependencies
by supporting different modes.

 

To finish reading, please visit source site