skillfed

commit-check

Check commit message formatting, branch naming, commit author, email, and more.

commit-check v2.15.0 85.9K downloads/30d#13,895 on PyPI70
Permissive license MIT Active released

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-check

uv

uv add commit-check

poetry

poetry add commit-check

Installing 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

Development Status :: 5 - Production/StableIntended Audience :: DevelopersNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Software Development :: Build ToolsTopic :: Software Development :: Libraries :: Python ModulesTopic :: Utilities

Tags

git commit message validationconventional commits checkerbranch naming policy enforcementpre-commit hook frameworkcommit metadata lintergit policy engineconventional branch validator
git-workflowpolicy-enforcementconventional-commits

More Python Modules packages

Further reading