Coverage for packages/workshop/src/livery/workshop/_conventional.py: 100%
Measured by coverage.py 7.16.2 on CPython 3.14 while the suites of tests, packages/workshop, packages/extensions/ty, packages/extensions/ruff, packages/extensions/python, packages/extensions/pytest, packages/extensions/pyrefly, packages/extensions/nanobind, packages/extensions/mypy, packages/extensions/mkdocstrings, packages/extensions/lfs, packages/extensions/docs, packages/extensions/cpp, packages/extensions/coverage, packages/extensions/conan, packages/extensions/cmake, packages/extensions/claude, packages/extensions/clang-tidy, packages/extensions/clang-format, packages/extensions/changelog, packages/extensions/basedpyright ran.
Keys
- r m x p show or hide the lines of a kind
- j k the next or previous highlighted chunk
- 0 the top of the page
- 1 the first highlighted chunk
- [ ] the previous or next file
- u the index
- ? show or hide this help
1"""The commit convention: the grammar every title is held to.
3A pull request title (and so, on a squash-only main, every commit
4subject) is ``type(scope): subject``, with ``!`` before the colon or
5a ``BREAKING CHANGE:`` footer marking a break. The submit verb
8Two readers take the convention back. livery.workshop._versions
9derives a package's next version from it, and the release notes'
10provider, when an extension registers one, writes the entry the
14from __future__ import annotations(empty)
18#: The commit types the grammar admits.
19TYPES = ("feat", "fix", "docs", "chore", "refactor", "test")(empty)
21#: The title grammar submit enforces.
22TITLE_RE = re.compile(rf"^({'|'.join(TYPES)})(\([^)]+\))?(!)?: .+$")(empty)