This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

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:

  • pep8 checking of python files
  • pyflakes checking of python files
  • Checking for forgotten pdb statements in python files
  • JSLint checking of JavaScript and HTML files
  • Trac integration. This includes:
    • Making sure at least a ticket is mentioned in the changeset message
    • Updating the Trac ticket with the changeset

PyPi package:

http://pypi.python.org/pypi/githooks

hghooks

hghooks is being developed by Lorenzo Gil Sanchez. It’s released under a LGPLv3, and it’s hosted on:

https://bitbucket.org/lgs/hghooks

Extra dependencies

It uses pyjslint, who requires nodejs. You can find more details on this in http://pypi.python.org/pypi/pyjslint/

Documentation

How to use

Soon :P

Configuration

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 = johndoe@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

Global context is user level. This configuration is common for all the repositories of the user.

  • pep8.ignore
    • pep8 error list to ignore
    • defaults to None

Local

Local context is repository level. This configuration only affects one repository.

  • trac.hook-active
    • activate trac integration hook
    • defaults to False
  • trac.repo-name
  • trac.changeset-style
  • trac.msg-template

Note

More and better documentation soon :P

Release History

Release History

0.5

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.4dev

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.3dev

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.2dev

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1dev

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
githooks-0.5.tar.gz (19.1 kB) Copy SHA256 Checksum SHA256 Source Dec 6, 2011

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting