diff options
author | Gergely Nagy <gergely.nagy@arm.com> | 2023-12-13 19:07:28 +0000 |
---|---|---|
committer | Gergely Nagy <gergely.nagy@arm.com> | 2024-01-23 12:53:01 +0000 |
commit | 732d8ef0bba9d23c731611dbed25e2e24a8a30d2 (patch) | |
tree | f369a01301e8a4634e232a9b0c21854e22f63b69 /.pre-commit-config.yaml | |
parent | 54eec806272b7574a0757c77a913a369a9ecdc70 (diff) | |
download | mlia-732d8ef0bba9d23c731611dbed25e2e24a8a30d2.tar.gz |
build: Integrate Commitizen to check commit messages and generate changelog
The commit messages are checked against the Conventional Commits
(https://www.conventionalcommits.org) specification, along with minor
customizations (eg, capitalized header, some irrelevant commit types removed
Checking messages is integrated into `tox -e lint`.
Changelog generation is integrated into "tox -e changelog", which runs
`cz changelog` command underneath and incrementally updates RELEASES.md.
Change-Id: I86f21f6c78a166d3bb92450a027a2d7e71ce22cf
Signed-off-by: Gergely Nagy <gergely.nagy@arm.com>
Diffstat (limited to '.pre-commit-config.yaml')
-rw-r--r-- | .pre-commit-config.yaml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 81e0acb..67bd90b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -118,3 +118,9 @@ repos: entry: pylint language: system types: [python] + +- repo: https://github.com/commitizen-tools/commitizen + rev: v3.13.0 + hooks: + - id: commitizen-branch + args: [--rev-range, HEAD~1..HEAD] |