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
Built Distribution
Close
Hashes for precommit_message_preservation-0.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b667a697725480b0f85aff7b3cfbd3a7c87326ff30a9f11cf40d0dce2cdcd6c9 |
|
MD5 | 8b39f7803b0a2469e86cc849f8e87f02 |
|
BLAKE2b-256 | b0b28abbb2a583dfb231b502e3b970d38174015e293ed4522a0596ea81f7bd0e |
Close
Hashes for precommit_message_preservation-0.6-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3d549929e33e0a0cefce56b417f58729336571cd7fd6a0dc4d7099fac5b6c07 |
|
MD5 | 1429006b58f52c5a01069402b2eb990a |
|
BLAKE2b-256 | c62ff483683b084a1c003af99a2652b850afc4ab569c68c582c30c977e07f818 |