From 9b873876295dde941fd55d1cbc6100f4d54efa73 Mon Sep 17 00:00:00 2001 From: Matej Focko Date: Sat, 24 Feb 2024 15:16:15 +0100 Subject: [PATCH] feat: add commitizen Signed-off-by: Matej Focko --- .cz.toml | 7 +++++++ .pre-commit-config.yaml | 22 +++++++++++++++------- 2 files changed, 22 insertions(+), 7 deletions(-) create mode 100644 .cz.toml diff --git a/.cz.toml b/.cz.toml new file mode 100644 index 0000000..7eaabc6 --- /dev/null +++ b/.cz.toml @@ -0,0 +1,7 @@ +[tool] +[tool.commitizen] +name = "cz_conventional_commits" +tag_format = "$version" +version_scheme = "semver" +version_provider = "scm" +update_changelog_on_bump = true diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fd16ba2..28011a8 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,10 +1,18 @@ # See https://pre-commit.com for more information # See https://pre-commit.com/hooks.html for more hooks repos: -- repo: https://github.com/pre-commit/pre-commit-hooks - rev: v3.2.0 - hooks: - - id: trailing-whitespace - - id: end-of-file-fixer - - id: check-yaml - - id: check-added-large-files +- repo: https://github.com/pre-commit/pre-commit-hooks + rev: v3.2.0 + hooks: + - id: trailing-whitespace + - id: end-of-file-fixer + - id: check-yaml + - id: check-added-large-files + +- repo: https://github.com/commitizen-tools/commitizen + rev: v3.15.0 + hooks: + - id: commitizen + - id: commitizen-branch + stages: + - push