Skip to main content

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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

cmpal-0.1.7-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

Details for the file cmpal-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: cmpal-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 11.9 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

Hashes for cmpal-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 1a5581a7efd115ad746022b2104e1eea559417e76a95a6cd52c40827d635da73
MD5 71de8e64eb78d8a27d7b5fe49d5fb633
BLAKE2b-256 9de662818394c918a83dea735aa7ffc0c46f7b4125d08fee0c443c9a63605ddf

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