Gitlint plugin for RAI footer validation
Project description
gitlint-rai
Gitlint plugin for enforcing AI attribution in commit messages using Git commit message trailers.
Installation
pip install gitlint-rai
or with uv:
uv add gitlint-rai
Usage
Add to .gitlint:
[general]
extra-path=gitlint_rai
Then run:
gitlint
Or use the standalone wrapper:
gitlint-rai
Verify the rule loaded:
gitlint --list-rules | grep rai-footer-exists
Expected output:
rai-footer-exists Commit message must include a valid RAI footer
Valid Footer Formats
Authored-by: [Human] <email>- Human only, no AI involvementCommit-generated-by: [AI Tool] <email>- Trivial AI (docs, commit msg, reviews, advice, etc)Assisted-by: [AI Tool] <email>- AI helped, but primarily human codeCo-authored-by: [AI Tool] <email>- Roughly half is AI generated and half human-authored contentGenerated-by: [AI Tool] <email>- Majority of code was AI generated
All patterns are case-insensitive.
Requirements
- Python >= 3.11, < 3.13
- gitlint >= 0.19.1
License
PolyForm Shield License 1.0.0
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
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 gitlint_rai-0.1.1.tar.gz.
File metadata
- Download URL: gitlint_rai-0.1.1.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
37ee433f43c7635af8cd831e753b817500d26d7f774241d55d954f0491450acf
|
|
| MD5 |
6581d9ea0e09d62b8678d6200a3d0f89
|
|
| BLAKE2b-256 |
974a4d820c93fa535fbe1aa3aa94d57fba66d68c2a50f4e0940f489c1e9382dc
|
Provenance
The following attestation bundles were made for gitlint_rai-0.1.1.tar.gz:
Publisher:
release-please.yml on ChecKMarKDevTools/rai-lint
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gitlint_rai-0.1.1.tar.gz -
Subject digest:
37ee433f43c7635af8cd831e753b817500d26d7f774241d55d954f0491450acf - Sigstore transparency entry: 781206355
- Sigstore integration time:
-
Permalink:
ChecKMarKDevTools/rai-lint@0628967fa5de5454e4032f1b2ce09861a6b60ab7 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/ChecKMarKDevTools
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-please.yml@0628967fa5de5454e4032f1b2ce09861a6b60ab7 -
Trigger Event:
push
-
Statement type:
File details
Details for the file gitlint_rai-0.1.1-py3-none-any.whl.
File metadata
- Download URL: gitlint_rai-0.1.1-py3-none-any.whl
- Upload date:
- Size: 19.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
511d79aa6ff744fb1a4ea86972ac2e7062c5ac9e2682bdff703934470648373b
|
|
| MD5 |
74e60ef7c7561141c700a67460f6ac4e
|
|
| BLAKE2b-256 |
86fcd65b36e1ce7606f0f13d552890fac17b7c21de0cf29761b045716551b13b
|
Provenance
The following attestation bundles were made for gitlint_rai-0.1.1-py3-none-any.whl:
Publisher:
release-please.yml on ChecKMarKDevTools/rai-lint
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gitlint_rai-0.1.1-py3-none-any.whl -
Subject digest:
511d79aa6ff744fb1a4ea86972ac2e7062c5ac9e2682bdff703934470648373b - Sigstore transparency entry: 781206356
- Sigstore integration time:
-
Permalink:
ChecKMarKDevTools/rai-lint@0628967fa5de5454e4032f1b2ce09861a6b60ab7 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/ChecKMarKDevTools
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-please.yml@0628967fa5de5454e4032f1b2ce09861a6b60ab7 -
Trigger Event:
push
-
Statement type: