From 716dc21c3abab9eb9e72546987fd0a5033eaabf5 Mon Sep 17 00:00:00 2001 From: Valery Tolstov Date: Fri, 26 Sep 2025 17:30:28 +0200 Subject: [PATCH] chore: Add commitizen pre-push hook --- .pre-commit-config.yaml | 7 +++++++ pyproject.toml | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5a84b0f..1a25a01 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -32,3 +32,10 @@ repos: - id: ruff args: [ --fix ] - id: ruff-format + +- repo: https://github.com/commitizen-tools/commitizen + rev: v4.9.1 + hooks: + - id: commitizen + - id: commitizen-branch + stages: [pre-push] diff --git a/pyproject.toml b/pyproject.toml index a632b17..ad04cfc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -123,7 +123,7 @@ exclude = ["**/__pycache__", "**/.venv", "**/node_modules", "**/dist", "**/build [tool.commitizen] name = "cz_conventional_commits" -version = "0.0.0" +version = "0.1.0" tag_format = "v$version" version_files = [ "pyproject.toml:version",