help with commits!
Project description
co_mit
helps with commits!
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. │
╰─────────────────────────────────────────────────────────────────────────────╯
- 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:
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-1.1.0.tar.gz.
File metadata
- Download URL: co_mit-1.1.0.tar.gz
- Upload date:
- Size: 134.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3d84811ba67a16f4d5e0ce65dea2e548e8940f9563385f71ea0cfa15a0e0dd7c
|
|
| MD5 |
2bd761df3b431f7792f2de7b106cdb1b
|
|
| BLAKE2b-256 |
0390579f616261e08ed22290c6c14f5eeb35b486bae23949536ed9a6d0471d44
|
Provenance
The following attestation bundles were made for co_mit-1.1.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-1.1.0.tar.gz -
Subject digest:
3d84811ba67a16f4d5e0ce65dea2e548e8940f9563385f71ea0cfa15a0e0dd7c - Sigstore transparency entry: 191724903
- Sigstore integration time:
-
Permalink:
olincb/commit-helper@947399df5902d5d54d8b702b1629e5bedcf3f615 -
Branch / Tag:
refs/tags/1.1.0 - Owner: https://github.com/olincb
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@947399df5902d5d54d8b702b1629e5bedcf3f615 -
Trigger Event:
push
-
Statement type:
File details
Details for the file co_mit-1.1.0-py3-none-any.whl.
File metadata
- Download URL: co_mit-1.1.0-py3-none-any.whl
- Upload date:
- Size: 8.2 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 |
c71ba8fd49d182fc487e0eabcf7e13defc9005cce979a6de6903af40348f13ab
|
|
| MD5 |
f7650da489644b985173263da3c98dc1
|
|
| BLAKE2b-256 |
dd3da955797b377e434ec7effa6d411bceca81a0ccbab2c2d7d5a47727fff458
|
Provenance
The following attestation bundles were made for co_mit-1.1.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-1.1.0-py3-none-any.whl -
Subject digest:
c71ba8fd49d182fc487e0eabcf7e13defc9005cce979a6de6903af40348f13ab - Sigstore transparency entry: 191724904
- Sigstore integration time:
-
Permalink:
olincb/commit-helper@947399df5902d5d54d8b702b1629e5bedcf3f615 -
Branch / Tag:
refs/tags/1.1.0 - Owner: https://github.com/olincb
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@947399df5902d5d54d8b702b1629e5bedcf3f615 -
Trigger Event:
push
-
Statement type: