From 9203d3864701f3abe59d97b4f1ae1ff1b090bcee Mon Sep 17 00:00:00 2001 From: Bertrand Lanson Date: Mon, 22 Apr 2024 21:19:24 +0200 Subject: [PATCH] feat: configure commitizen --- .cz.toml | 7 +++++++ .pre-commit-config.yaml | 8 ++++++++ 2 files changed, 15 insertions(+) create mode 100644 .cz.toml diff --git a/.cz.toml b/.cz.toml new file mode 100644 index 0000000..250be54 --- /dev/null +++ b/.cz.toml @@ -0,0 +1,7 @@ +[tool.commitizen] +name = "cz_conventional_commits" +tag_format = "v$version" +version_scheme = "semver" +version_provider = "scm" +update_changelog_on_bump = true +bump_message = "release: $current_version → $new_version [skip-ci]" diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 668570f..22d7cd6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -18,3 +18,11 @@ repos: hooks: - id: trailing-whitespace - id: end-of-file-fixer + - repo: https://github.com/commitizen-tools/commitizen + rev: v3.24.0 + hooks: + - id: commitizen + - id: commitizen-branch + stages: + - post-commit + - push