A library for creating precommit hooks against file diffs
This is a simple library that makes it easier to code hooks for pre-commit that validate commit messages that preserve the commit message on failure. In other words, if the user writes a long commit message and your pre-commit hook tells them the message is bad, they won't have their message entirely thrown away.
You'll want to install the developer dependencies:
pip install -e .[develop]
This will include
nose2, which is the test runner of choice. After you make modifications you can run tests with
When you're satisfied you'll want to update the version number and do build-and-upload:
python setup.py sdist bdist_wheel twine upload dist/* --verbose
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Hashes for precommit_diffcheck-1.12-py2.py3-none-any.whl