Skip to main content

help with commits!

Project description

co_mit

helps with commits!

PyPI - Version PyPI - Python Version


Table of Contents

Installation

pip install co-mit

Usage

 » co-mit --help

 Usage: co-mit [OPTIONS]

 Helps with git commits.

╭─ Options ───────────────────────────────────────────────────────────────────╮
│ --openai-key  -k  TEXT  OpenAI API key. Can also set with OPENAI_API_KEY    │
│                         environment variable.                               │
│ --example     -e  TEXT  Example input to generate a commit message from.    │
│ --quiet       -q        Suppress all output other than final commit         │
│                         message. Useful for scripting. Can also set with    │
│                         CO_MIT_QUIET environment variable.                  │
│ --help                  Show this message and exit.                         │
╰─────────────────────────────────────────────────────────────────────────────╯
  1. Set the OPENAI_API_KEY environment variable to your OpenAI API key.
  2. Navigate to the root of your git repository.
  3. Run cmt or co-mit to generate a commit message:
$ co-mit
Generating commit message...
running `git status`
running `git diff`
feat(cli): add `--example` option for generating commit messages

- Introduce the `--example (-e)` option to allow users to provide example
input for commit message generation.
- Update the CLI to handle the `--example` parameter and pass it to the
commit flow.
- Enhance the `CommitFlow` to incorporate example-based formatting
instructions.
- Improve the README with detailed usage instructions and examples, including
the new `--example` option.

License

co-mit is distributed under the terms of the MIT license.

Development

I will assume you have uv installed.

To install co-mit along with the tools you need to develop and run tests, run the following in your uv virtualenv:

uv pip install -e .[dev]

Running co_mit

After installing the package, you can run the CLI with:

co-mit

To run with dotenv file:

dotenv run -- co-mit

Publishing

To publish a new version to PyPI, update the version number with hatch:

hatch version minor
# or major, patch, etc.

Then push a tag or create a new release on GitHub.

A GitHub Actions workflow will automatically publish the new version to PyPI when a new tag is pushed to the repository, or a new release is created.

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

co_mit-0.2.2.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

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

co_mit-0.2.2-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file co_mit-0.2.2.tar.gz.

File metadata

  • Download URL: co_mit-0.2.2.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for co_mit-0.2.2.tar.gz
Algorithm Hash digest
SHA256 e6037aa8546c47440355b8b0f2e6c5bad2ced82380a85a952e8cc4f134d45dfe
MD5 ae9cebe113ca62a972b0048f1cafc036
BLAKE2b-256 cac0442e096aa8d50288e322c61912132e3137a57684e8de6f151ad6e2ad5519

See more details on using hashes here.

Provenance

The following attestation bundles were made for co_mit-0.2.2.tar.gz:

Publisher: publish.yml on olincb/commit-helper

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file co_mit-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: co_mit-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for co_mit-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 cbc00a267df05eaf7b7b9e7f70aeccdabfbd794ff66fae92c8b31ea0b795b45b
MD5 8d5d6e0d5d2d53e0ef71ff32ab7e1f93
BLAKE2b-256 3ba4ad135b99af97f4afcd06ce856cfb811445a3e2730cacc4feff2b6dce4a3e

See more details on using hashes here.

Provenance

The following attestation bundles were made for co_mit-0.2.2-py3-none-any.whl:

Publisher: publish.yml on olincb/commit-helper

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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