Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

precommit_diffcheck-1.1.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

precommit_diffcheck-1.1-py2.py3-none-any.whl (5.7 kB view details)

Uploaded Python 2Python 3

File details

Details for the file precommit_diffcheck-1.1.tar.gz.

File metadata

  • Download URL: precommit_diffcheck-1.1.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.5

File hashes

Hashes for precommit_diffcheck-1.1.tar.gz
Algorithm Hash digest
SHA256 d92154ec25e518cc37c66285688b41f9b5230a7ac0e83f64e9a529a3dee24115
MD5 a377cd99dd265ae00a6d1ad93454779a
BLAKE2b-256 b1258dfbc0f6f5f6594b2d056904c59b624a3d948d6595bf6773a9f1dd837fda

See more details on using hashes here.

File details

Details for the file precommit_diffcheck-1.1-py2.py3-none-any.whl.

File metadata

  • Download URL: precommit_diffcheck-1.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.5

File hashes

Hashes for precommit_diffcheck-1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 7346b8bc5eae334dab3bc4d367abe9bee602c85eb08b19d0505efc096ab1d912
MD5 0e36c80ccee432bee56532d3d4c69faf
BLAKE2b-256 6606dd9cd7a510de2c78d9ee7b47492770041cfd4c6a762427e3bb4cf454c831

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page