simple git hooks scripts for a better git experience that enforces you to use the known commit messages conventions
Project description
commit-linter
An easy to use tool to that lints your commit messages according to commit conventions .
commit-linter is a Python tool that helps you standardize your commit messages to a known commit conventions. the tool also add emojies to your commits.
Installation
Use the package manager pip to install commit-linter.
pip install commit-linter
Usage
in your git repository just execute
commit-linter
or
commit-linter install
if you want to remove the hook, just execute
commit-linter remove
How it works
commit-linter uses git-hooks which are scripts that exists in each repository.
Take a look at any repo you have, you will have .git
directory, and inside you
will find hooks
directory, commit-linter just puts a simple script named commit-msg
inside that directory and makes it executable so each time you right a commit message
it will get linted as per the conventions, you can look at script in your repository
inside .git/hooks
path.
Read more about Git Hooks.
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
License
This Tool is Under MIT License.
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
File details
Details for the file commit-linter-1.0.3.tar.gz
.
File metadata
- Download URL: commit-linter-1.0.3.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e380cac6d9010dab4559380e8d153b71743526bf042d3828dacd6efe544d8aba |
|
MD5 | fa4eb2d65510cc12b11b4041d998692e |
|
BLAKE2b-256 | d44e8260861fd063901bfde329f8fb46c22be1308d3489df9694f968c34196ad |
File details
Details for the file commit_linter-1.0.3-py3-none-any.whl
.
File metadata
- Download URL: commit_linter-1.0.3-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 404fc2adb7ad49fddc27b1fa4424c17bf41556dbaed8dc4c274ca1e104825fbb |
|
MD5 | c2bf6c7cec0281fd1550d873c32e075a |
|
BLAKE2b-256 | 5ae0fc0eab6d74cda617a52e8c8947a9752c38734ad84837f015d8c3748eb484 |