help with commits!
Project description
co_mit
helps with commits!
Table of Contents
Installation
pip install co-mit
Usage
$ cmt --help
Usage: cmt [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. │
│ --help Show this message and exit. │
╰───────────────────────────────────────────────────────────────────────────╯
- Set the
OPENAI_API_KEYenvironment variable to your OpenAI API key. - Navigate to the root of your git repository.
- Run
cmtorco-mitto generate a commit message:
$ co-mit
Generating commit message...
'''
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file co_mit-0.2.0.tar.gz.
File metadata
- Download URL: co_mit-0.2.0.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7d2effdfb76dc3dd95b21b97ff3ce3b57d532b4cda5c1cb40895d7f52b7e33b7
|
|
| MD5 |
93708715ec05af766c4899f75c64bb08
|
|
| BLAKE2b-256 |
ea5697b9dec374a90fdacb3070c775a04fbdcbd4e991ec5f396f865d28fd3214
|
Provenance
The following attestation bundles were made for co_mit-0.2.0.tar.gz:
Publisher:
publish.yml on olincb/commit-helper
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
co_mit-0.2.0.tar.gz -
Subject digest:
7d2effdfb76dc3dd95b21b97ff3ce3b57d532b4cda5c1cb40895d7f52b7e33b7 - Sigstore transparency entry: 176697513
- Sigstore integration time:
-
Permalink:
olincb/commit-helper@c699eb3d44b81bf046300790c9c8b921b082ebeb -
Branch / Tag:
refs/tags/0.2.0 - Owner: https://github.com/olincb
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@c699eb3d44b81bf046300790c9c8b921b082ebeb -
Trigger Event:
push
-
Statement type:
File details
Details for the file co_mit-0.2.0-py3-none-any.whl.
File metadata
- Download URL: co_mit-0.2.0-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7c7432d51e01d5ec57e0dfd4c16a55efe86d25e9fd0db58baf51264980be6530
|
|
| MD5 |
499c48a0e7310222a51c1b6570b0dced
|
|
| BLAKE2b-256 |
b254a56cb5123a9729d34f2e12eed431023e0d52b40db436eb8090accdcc202b
|
Provenance
The following attestation bundles were made for co_mit-0.2.0-py3-none-any.whl:
Publisher:
publish.yml on olincb/commit-helper
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
co_mit-0.2.0-py3-none-any.whl -
Subject digest:
7c7432d51e01d5ec57e0dfd4c16a55efe86d25e9fd0db58baf51264980be6530 - Sigstore transparency entry: 176697518
- Sigstore integration time:
-
Permalink:
olincb/commit-helper@c699eb3d44b81bf046300790c9c8b921b082ebeb -
Branch / Tag:
refs/tags/0.2.0 - Owner: https://github.com/olincb
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@c699eb3d44b81bf046300790c9c8b921b082ebeb -
Trigger Event:
push
-
Statement type: