1. Aaron
  2. hghooks


hghooks /

Filename Size Date modified Message
20 B
538 B
20 B
1.1 KB
29.2 KB
993 B
2 hooks included: PEP8 and optipng
PEP8 will run the pep8 validator against files pending commit
optipng will optimize any PNG, BMP, GIF, PNM or TIFF images.

Clone a copy of the code and place the hghooks directory somewhere on your
python path.

In order to use the optipng hook you will need to install optipng on your system

In ~/.hgrc or /path/to/your/project/.hg/hgrc

precommit.pep8 = python:hghooks.pep8.hook
precommit.optipng = python:hghooks.optipng.hook