From 34436a6f76446ad04afefb090748159938271605 Mon Sep 17 00:00:00 2001 From: Kurt von Laven Date: Tue, 3 May 2022 19:53:03 -0700 Subject: [PATCH] ci(pre-commit): Upgrade commitizen hook Upgrade self-test hook from v1.23.0 to v2.24.0. The former version crashes with the following error: ImportError: cannot import name 'soft_unicode' from 'markupsafe' Configure Commitizen to automatically bump the version of its own hook that it uses. Use the new location of the repository in the commitizen-tools org. --- .pre-commit-config.yaml | 4 ++-- pyproject.toml | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c7b0c4a38..0107c30c3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -11,8 +11,8 @@ repos: - id: debug-statements - id: no-commit-to-branch - - repo: https://github.com/Woile/commitizen - rev: v1.23.0 + - repo: https://github.com/commitizen-tools/commitizen + rev: v2.24.0 # automatically updated by Commitizen hooks: - id: commitizen stages: [commit-msg] diff --git a/pyproject.toml b/pyproject.toml index 070b950cd..0bb7d8eb5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,8 @@ version = "2.24.0" tag_format = "v$version" version_files = [ "pyproject.toml:version", - "commitizen/__version__.py" + "commitizen/__version__.py", + ".pre-commit-config.yaml:rev.\\s+(?=[^\\n]+Commitizen)" ] [tool.black]