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

Uploaded Python 3

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

Hashes for cmpal-0.1.4.tar.gz
Algorithm Hash digest
SHA256 e21429a9333c3f7d7054f9276d503a1a573e46d7ac3e5d1114552f2726c05ead
MD5 ea90b7c6fcfc7f830f6dde37e6cbcb9d
BLAKE2b-256 33dce8a0e79f7009edbf89a64d00840c86c81894a1449d5f552228c4a703612b

See more details on using hashes here.

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

Hashes for cmpal-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 e1c306f2387446f0b39315898bd6c918fc91b25e94cc67bed63a2975649fcd5e
MD5 0c8dc4bbd73f3cb1e3189a6949dbf513
BLAKE2b-256 dd458e29b823cc582e2d1c378790b47c7e0246077b6672318774d6d4a6e74cb5

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