Set of Git hooks for pep8, pyflakes, jslint and trac integration
githooks is a simple module that adds several python related useful hooks to use with Git hooks system.
It’s still alpha software!
It uses the hghooks module as backend. It implements part of the Mercurial API for hooks, and calls hghooks for the heavy lifting. It supports what hghooks module supports, currently:
hghooks is being developed by Lorenzo Gil Sanchez. It’s released under a LGPLv3, and it’s hosted on:
Githooks has serveral options. It uses git config as configuration backend.
All githooks options has “githooks” as family, so a git configuration file looks like similar to this:
[user] name = John Doe email = email@example.com [githooks "pep8"] ignore = E501 [githooks "trac"] hook-active = False
How to read:
$ git config --global githooks.pep8.ignore E501 $
How to set:
$ git config --global githooks.pep8.ignore E501
You can find more details about git configuration on the git help:
$ git config --help
In git configuration there are several contexts. Githooks uses two of them.
Global context is user level. This configuration is common for all the repositories of the user.
Local context is repository level. This configuration only affects one repository.
More and better documentation soon :P