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 Distribution

cmpal-0.1.6.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

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

cmpal-0.1.6-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

Details for the file cmpal-0.1.6.tar.gz.

File metadata

  • Download URL: cmpal-0.1.6.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

Hashes for cmpal-0.1.6.tar.gz
Algorithm Hash digest
SHA256 7556e657987c16287db7d8ff7e9091d751b27decb6b7b2e97d6b5b7fd7ad64bf
MD5 eaca003d4a8b26cd8fb587a61ed68e62
BLAKE2b-256 5d9a5092d6a76f6fee7214302b87e691c0f592126f7a89161d4f928579082041

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cmpal-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 11.8 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 82cfe3a8935e61325dfa279c261a8fbd34e08f44022a28058c38472d5f4e4bf7
MD5 47e633aa14847f123d9cdee9b4ef4cff
BLAKE2b-256 347d2930335bf87daa4b276ec98cb08842c83c832ff0e042a2a4ba4ea2e33030

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