A library for preserving and restoring commit messages
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
twine upload dist/* --verbose
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for precommit_message_preservation-0.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e324be2dca63389ee0648175523a34fb2dbeb065546a95679832e583d9d7f151 |
|
MD5 | 354daa6fe153ba103bb18c912658db8a |
|
BLAKE2b-256 | d941fe53c2331b53a9057c7f0157637de9a7f971b1248e83856edaf8479e1b29 |