commit-check
Check commit message formatting, branch naming, commit author, email, and more.
What it is and what it does
Commit Check is a policy engine for Git metadata that validates commit messages, branch names, author identity, signoff trailers, and push safety using a single versioned TOML configuration file. It enforces the same policy across local pre-commit hooks, CI pipelines, GitHub Actions, and AI automation toolchains, eliminating inconsistency between development environments and automated checks.
The package ships with sensible defaults based on Conventional Commits and Conventional Branch conventions, but allows fine-grained customization via cchk.toml configuration files, CLI arguments, or environment variables. It supports organization-level policy inheritance, machine-readable JSON output for AI agents and automation scripts, and a Python API for programmatic use without subprocess overhead. The tool is designed to integrate seamlessly into existing Git workflows while providing enforcement points for commit quality and safety policies.
Use it for:
- Enforce Conventional Commits and branch naming standards across a team without manual review.
- Prevent accidental force pushes and unsafe ref updates in pre-push hooks.
- Validate AI-generated commits for proper attribution and policy compliance in LLM-driven workflows.
- Share organization-level commit policies across multiple repositories using inherit_from configuration.
- Generate structured JSON output for CI/CD pipelines and automation scripts that need to parse validation results programmatically.
- Validate commit author identity and email patterns to ensure only authorized contributors can commit.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Validates Git commit messages, branch names, author identity, and push safety against a versioned TOML policy, enforced across local hooks, CI, and AI automation.
Yes. Commit Check is actively maintained, has low install friction, carries no security vulnerabilities, and solves a real problem—enforcing consistent commit policy across local and CI environments. It is particularly valuable if your team uses Conventional Commits, needs to share policies across repositories, or integrates AI-driven commit generation. The MIT license and broad Python version support (3.10–3.14) make adoption straightforward.
Install
commit-check on PyPI
pip
pip install commit-checkuv
uv add commit-checkpoetry
poetry add commit-checkInstalling commit-check
Before you install
Low install friction: pure Python wheel with only pyyaml and tomli as runtime dependencies. Actively maintained with a release 1 day old and 70 repository stars.
License in practice
MIT license permits unrestricted use, modification, and distribution with minimal attribution requirements.
Quickstart
pip install commit-check
commit-check --message --branch
# Or in .pre-commit-config.yaml:
repos:
- repo: https://github.com/commit-check/commit-check
rev: v2.15.0
hooks:
- id: check-message
- id: check-branch
Requires Python 3.10 or later.
Verify before relying
- Whether the default Conventional Commits and Conventional Branch policies are sufficient for most projects without custom configuration.
- Performance characteristics when validating large numbers of commits in CI/CD pipelines.
- Compatibility and interaction with other pre-commit hooks in complex workflows.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — pyyaml, tomli |
| Maintenance | actively maintained — 1 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 85,880/month — #13,895 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: commit_check-2.15.0-py3-none-any.whl
Keywords: commit conventions, conventional commits, conventional branch, branch naming, commit-check, message, lint message, devops
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
conventional-pre-commitA pre-commit hook that validates git commit…
permissive · top 15,000 on PyPI
commitlintLints commit messages against the Conventional…
copyleft · top 15,000 on PyPI
commitizenCommitizen enforces standardized commit…
permissive · top 5,000 on PyPI
ickIck is a polyglot tool for bundling best…
permissive · top 15,000 on PyPI
yamllintyamllint checks YAML files for syntax errors,…
copyleft · top 1,000 on PyPI
git-cliffgit-cliff generates changelog files from Git…
unclear · top 15,000 on PyPI
check-jsonschemaA command-line tool and pre-commit hook that…
permissive · top 5,000 on PyPI
tbumptbump automates version bumping in your project…
permissive · top 15,000 on PyPI
pre-commitpre-commit is a framework for installing and…
permissive · top 1,000 on PyPI
release-tagAutomatically creates and optionally pushes…
permissive · top 15,000 on PyPI