No project description provided
Project description
commit-pal ⚡️
A CLI AI assistant that helps you write commit messages at the speed of light using locally run LLMs.
Quick Start
Install and setup commit-pal
Install the latest version of commit-pal from PyPI:
pip install commit-pal
cm --setup # Configure the style of the commit messages
Run LLM locally with Ollama
- Ollama should be installed and running
- Pull and run a model to use with the library:
ollama run <model>e.g.ollama run qwen2.5-coder:7b- See Ollama.com for more information on the models available.
- We have seen the best performance with qwen2.5-coder:7b model so far.
By default, Ollama will run on localhost:11434.
Generate commit message
After staging your changes, run the following command to generate a commit message:
cm
The proposed commit message will be displayed in the terminal for you to review and confirm
Development Setup (Only for developers who wish to contribute to the project)
Install Poetry
Please follow the official installation guide to install Poetry, which will be used to manage dependencies and environments.
# Install dependencies
poetry install
# Activate Python Virtual Environment for Mac/Linux
eval "$(poetry env activate)"
# Activate Python Virtual Environment for Windows
.venv\Scripts\Activate.ps1
Style Enforcement
make lint
Quick Start to Test CLI App
pip uninstall cm -y # Uninstall old version of commit-pal
pip install -e . -v # Install new version of commit-pal
cm # Run commit-pal
Publish to PyPI
# Bump the semantic version in pyproject.toml before running this command
make publish
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cmpal-0.1.4.tar.gz.
File metadata
- Download URL: cmpal-0.1.4.tar.gz
- Upload date:
- Size: 8.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.0.1 CPython/3.12.1 Darwin/24.1.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e21429a9333c3f7d7054f9276d503a1a573e46d7ac3e5d1114552f2726c05ead
|
|
| MD5 |
ea90b7c6fcfc7f830f6dde37e6cbcb9d
|
|
| BLAKE2b-256 |
33dce8a0e79f7009edbf89a64d00840c86c81894a1449d5f552228c4a703612b
|
File details
Details for the file cmpal-0.1.4-py3-none-any.whl.
File metadata
- Download URL: cmpal-0.1.4-py3-none-any.whl
- Upload date:
- Size: 11.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.0.1 CPython/3.12.1 Darwin/24.1.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e1c306f2387446f0b39315898bd6c918fc91b25e94cc67bed63a2975649fcd5e
|
|
| MD5 |
0c8dc4bbd73f3cb1e3189a6949dbf513
|
|
| BLAKE2b-256 |
dd458e29b823cc582e2d1c378790b47c7e0246077b6672318774d6d4a6e74cb5
|