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.7.linux-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2aa75de5073b1130c6255c98925c0e1e82078c56c2000682d40dadc85c2d92db |
|
MD5 | 0798cbaae77ae0f9b169de531ef5b9b0 |
|
BLAKE2b-256 | ae6c68a3e2b54d79f5422820aebd4eb7f1f634ef66cf2a75457817fe88550838 |
Close
Hashes for precommit_diffcheck-1.7-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07cbe559f81b1e82387c8a9ddb17fd04e4d43910467fbc4f4130eba4e42ba055 |
|
MD5 | 12fbf2b1df5f66643ae61770e35e5e54 |
|
BLAKE2b-256 | 094081838f1827186ed502fd2d0d703cbdce8ab5ce1cadc9477464bf345d0e1b |