A library for creating precommit hooks against file diffs
Project description
precommit-message-perservation
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.
Hacking
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
nose2
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
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
Built Distribution
Close
Hashes for precommit_diffcheck-1.8-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7552786e3a564a1c0512b5659fa0495b1427ba64da1e3accbfd26cd486eb4fea |
|
MD5 | 9fb01da0799da456c4c89aa6b9f14451 |
|
BLAKE2b-256 | 68455dc9ca483b90804a4caf5390e1722a9a028443935f5ed6d3dcd60c7788b4 |