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.5.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.5-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cmpal-0.1.5.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.5.tar.gz
Algorithm Hash digest
SHA256 ab7df2b368cb1ee03c220ccee789e6a4122695db423dcf2db4ca07ddf5e228a4
MD5 cc0f426ae9033c0bfdd132ce99434acc
BLAKE2b-256 aed214f75c2eb8b6e5c4bd02d47b417848e53970bea31c396aae3a17324bda06

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cmpal-0.1.5-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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 e53231ebde35175cf52c79dc37c314472b1f53b802fb71fb6ceae8b94e750a85
MD5 f8ed205f16df974a32ece664880405a9
BLAKE2b-256 f5787657c1f41faf23ba4c3951dcceb51a435c9f69888af60ddc2a8475ab2298

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