Skip to main content

A library for preserving and restoring commit messages

Project description


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 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.

Files for precommit-message-preservation, version 0.6
Filename, size File type Python version Upload date Hashes
Filename, size precommit_message_preservation-0.6.tar.gz (3.5 kB) File type Source Python version None Upload date Hashes View
Filename, size precommit_message_preservation-0.6-py2.py3-none-any.whl (4.7 kB) File type Wheel Python version py2.py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page