This document defines the English-only version control policy for the cliff-python package.
It follows the CLIFF organisation convention: English Conventional Commits, a protected main
release branch, a protected dev integration branch, annotated repository tags and an English
changelog.
mainis the release branch. It is protected, always releasable, and receives merges only fromdev.devis the integration branch. It is protected, always buildable, and receives work through pull requests.- Work branches start from
dev:feature/<slug>for features;fix/<slug>for fixes;docs/<slug>,test/<slug>,refactor/<slug>,ci/<slug>,build/<slug>,chore/<slug>,perf/<slug>orstyle/<slug>for the corresponding work;prototype/<slug>for disposable experiments. Prototype code is not merged; reimplement it ondev.
- Work pull requests target
dev. Release pull requests targetmainand mergedevintomain. - Branch names are lowercase ASCII with hyphen-separated words.
- Pull request titles use the same format as commit subjects.
- Merge commits are allowed; the
devtomainrelease merge must be a merge commit, somainis not linear. - Do not squash a release merge. Preserve the integration history.
- Delete a work branch after merge.
mainanddevprohibit direct pushes. A pull request must pass review and the repository checks before merge.
Format:
[AI] type(scope): English description
English body explaining why and what changed.
[AI]is optional. It is required for AI-generated or automated commits.typeis one of:feat,fix,docs,test,refactor,perf,style,chore,build,ci,revert.- The description is imperative English, at most 72 characters, and does not end with a period.
- A commit contains one logical change.
- All version control artifacts are English. They must not contain Chinese, Japanese, Korean or other CJK text.
- Releases follow Semantic Versioning. Release tags use
vX.Y.Zwith the messagecliff-python X.Y.Z. - Tags are created only on
main, after the release merge fromdev. Never tagdevor a work branch. - The version in
pyproject.tomlandsrc/cliff_format/__init__.pymust match the tag.
- Ensure
devis stable and all local checks pass. - On
dev, update the version,CHANGELOG.mdand release notes. - Run
ruff check src tests,mypy,pytestandpython tools/regenerate_examples.py --check. - Commit with
[AI] build(release): prepare vX.Y.Z. - Open a release pull request from
devtomainand merge it with a merge commit. - On
main, create the annotated tagvX.Y.Zand publish a GitHub Release. The publish workflow uploads to PyPI through Trusted Publishing.
- Branch protection requires pull requests, blocks direct pushes, force pushes and branch deletion, and applies to administrators.
- This repository has no always-run CI check at present. The publish workflow runs only for releases and is not a pull-request check. Review and the local checks above are the merge gate.
- Reviewers run the repository's local checks before approving a merge.