a tool for writing conventional commits, conveniently
pip install conventional-commit
To use, run the following command from within a git repository
The purpose of this utility is to expedite the process of committing with a conventional message format in a user friendly way. This tool is not templated, because it sticks rigidly to the Conventional Commit standard, and thus not designed to be 'altered' on a case by case basis.
Commit messages produced follow the general template:
<type>[(optional scope)]: <description> [BREAKING CHANGE: ][optional body / required if breaking change] [optional footer]
Additional rules implemeted:
- Subject line (i.e. top) should be no more than 50 characters.
- Every other line should be no more than 72 characters.
- Wrapping is allowed in the body and footer, NOT in the subject.
The old distribution method is documented in docs/dev_distibution_legacy.md
Note: if modifying
.travis.yml you should verify it by running
travis lint .travis.yml
Make sure you have Poetry installed.
Make sure you have pyenv installed.
It is highly recommend you enable setting for storing the venvs within your projects.
poetry config settings.virtualenvs.in-project true
Install project dependencies.
Running the package locally
Activate the virtual environment.
Run the package as a module.
python -m gitcommit
- Run the package using Poetry's venv as context
poetry run python -m gitcommit
Deployment is handled automatically by Travis CI. It has been linked to the repository and is automatically watching for pushes to master. It will build and test every commit to master. It will also build every tagged commit as if it was a branch, and since its a tagged commit, will attempt to publish it to PyPI.
Don't forget to increment version number set in
pyproject.toml. This can be done with poetry.
poetry version [patch|minor|major]
Tag the commit (by default applies to HEAD commit).
git tag v#.#.#
When pushing commits to remote, you must explicitly push tags too.
git push origin --tags
This work takes heavy influence from another repository porting Commitizen to Python.
This work is published under GNU GPLv3.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size conventional_commit-0.2.2-py3-none-any.whl (23.7 kB)||File type Wheel||Python version py3||Upload date||Hashes View hashes|
|Filename, size conventional-commit-0.2.2.tar.gz (22.8 kB)||File type Source||Python version None||Upload date||Hashes View hashes|
Hashes for conventional_commit-0.2.2-py3-none-any.whl
Hashes for conventional-commit-0.2.2.tar.gz