A set of useful hooks for Mercurial
Project description
hghooks
hghooks is a simple module that adds several useful hooks for use in Mercurial hooks system.
Right now it includes hooks for:
pep8 checking of python files
pyflakes checking of python files
checking for forgotten pdb statements in python files
Documentation
Installation
hghooks is distributed as a Python egg so is quite easy to install. You just need to type the following command:
easy_install hghooks
And Easy Install will go to the Cheeseshop and grab the last hghooks for you. It will also install it for you at no extra cost :-)
Usage
To use one of the hooks provided by this package edit your hgrc file of your Mercurial repository and add these lines:
[hooks] pretxncommit.pep8 = python:hghooks.pep8hook.pretxncommit pretxncommit.pyflakes = python:hghooks.pyflakeshook.pretxncommit pretxncommit.pdb = python:hghooks.pdbhook.pretxncommit
You can add only the hooks that you need.
Changes
0.1.0 (2010-06-13)
Initial release
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file hghooks-0.1.0.tar.gz
.
File metadata
- Download URL: hghooks-0.1.0.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 947f4d41a2fd6c4abe6c3377358c90ccfd31e108e918eaedd28700b743e75733 |
|
MD5 | 6b7f57f826fac2532929170d8bbd7a7b |
|
BLAKE2b-256 | 97c87638a4cbad33821e63486047413004abc5f2fe09e1073280afb51a3e4cf9 |