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