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

Install Poetry

It is recommended to use Python virtual environment, so you don't pollute your system Python environment.

# 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

Set up environment variables

# Create .env file (by copying from .env.example)
cp .env.example .env

Run LLM Locally

  • Ollama should be installed and running
  • Pull a model to use with the library: ollama pull <model> e.g. ollama pull llama3.2
    • See Ollama.com for more information on the models available.

By default, Ollama will run on localhost:11434.

Style Enforcement

make lint

Quick Start to Test CLI App

pip uninstall cmpal -y # Uninstall old version of cmpal
pip install -e . -v # Install new version of cmpal
cmpal # Run cmpal

Publish to PyPI

# Bump the semantic version in pyproject.toml before running this command
make publish

Debugging notes

Configure VSCode Python Interpreter to use Poetry's virtual environment

  1. Close VSCode so that it is able to detect the newly created virtual environment. A lot of times, this alone is enough to fix the issue.
  2. In the command palette, type Python: Select Interpreter
  3. Type poetry in the search box
  4. The first option should be what you want to use

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.2.tar.gz (6.3 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.2-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cmpal-0.1.2.tar.gz
  • Upload date:
  • Size: 6.3 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.2.tar.gz
Algorithm Hash digest
SHA256 e33959af09d5853586b174fa2d0f9f1d3f20128d78b1fb997c6f8173eacbc286
MD5 a5cb1b1e9710d75939a32c189537ca4e
BLAKE2b-256 890c2c32f55ac2d0d24116769d6a33653cf557b29cf5b37ec529b4b61c2e6724

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cmpal-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 9.3 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 56cb316d438c0994f5294086788c6f27e39ada0aca9606f628b4e5367ae63f51
MD5 3c06df2e97c5a47c33b9f896f16a97ea
BLAKE2b-256 ece104ee9380663594e5c5fd39bef0e4fb5ef2484c7a3665b0c610af21d72e74

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