Skip to main content

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

  1. Authored-by: [Human] <email> - Human only, no AI involvement
  2. Commit-generated-by: [AI Tool] <email> - Trivial AI (docs, commit msg, reviews, advice, etc)
  3. Assisted-by: [AI Tool] <email> - AI helped, but primarily human code
  4. Co-authored-by: [AI Tool] <email> - Roughly half is AI generated and half human-authored content
  5. Generated-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

gitlint_rai-0.1.1.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

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

gitlint_rai-0.1.1-py3-none-any.whl (19.7 kB view details)

Uploaded Python 3

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

Hashes for gitlint_rai-0.1.1.tar.gz
Algorithm Hash digest
SHA256 37ee433f43c7635af8cd831e753b817500d26d7f774241d55d954f0491450acf
MD5 6581d9ea0e09d62b8678d6200a3d0f89
BLAKE2b-256 974a4d820c93fa535fbe1aa3aa94d57fba66d68c2a50f4e0940f489c1e9382dc

See more details on using hashes here.

Provenance

The following attestation bundles were made for gitlint_rai-0.1.1.tar.gz:

Publisher: release-please.yml on ChecKMarKDevTools/rai-lint

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

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

Hashes for gitlint_rai-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 511d79aa6ff744fb1a4ea86972ac2e7062c5ac9e2682bdff703934470648373b
MD5 74e60ef7c7561141c700a67460f6ac4e
BLAKE2b-256 86fcd65b36e1ce7606f0f13d552890fac17b7c21de0cf29761b045716551b13b

See more details on using hashes here.

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

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