commit-msg-regex-hook
Before the readme, big shoutout to @dimaka-wix who's repo commit-msg-hook was the basis for this repository. Go check out his repo for more information.
This hook is designed to be used with the pre-commit hook framework. It will check your commit string against the provided regex.
Utilizing
First you will need to setup pre-commit using their documentation. Then you will be able to add this repository under it with the following:
- repo: https://github.com/dimaka-wix/commit-msg-hook.git
rev: v0.3.1
hooks:
- id: commit-msg-hook
args: ["regex='[A-Z]{3,4}-[0-9]{3,6} \| [\w\s]* \| .+'"]
stages: [commit-msg]
To enable commit-msg hook with pre-commit run:
pre-commit install --hook-type commit-msg
Update to the latest release (optional)
pre-commit autoupdate --repo https://github.com/dtaivpp/commit-msg-regex-hook.git
Metadata
Release files for commit-msg-regex-hook 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| commit-msg-regex-hook-0.0.2.tar.gz | 3.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| commit_msg_regex_hook-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.1 kB
Release files / commit-msg-regex-hook-0.0.2.tar.gz
| Download URL | commit-msg-regex-hook-0.0.2.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b28e752448e35333b00799af96d5f60a294afa30081ce59dbf6eca5126975aba
|
|
BLAKE2b-256 checksum How to use checksums |
b751c94879501fed49049ba7e45849a45e5e50add190a0bbcd87bd2df12a9429
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.0
|
Release files / commit_msg_regex_hook-0.0.2-py3-none-any.whl
| Download URL | commit_msg_regex_hook-0.0.2-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c2f3d9fa30611c854d4b8ec5af26f2db9ff95df605126199e3f70c1c499d576b
|
|
BLAKE2b-256 checksum How to use checksums |
0dc47193a8a35df223123a300dffb2e2e7b75a4eceddd0bf6d41d12862dba75e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.0
|