Skip to content

Commit 34436a6

Browse files
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.
1 parent 354f9ea commit 34436a6

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.pre-commit-config.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ repos:
1111
- id: debug-statements
1212
- id: no-commit-to-branch
1313

14-
- repo: https://github.com/Woile/commitizen
15-
rev: v1.23.0
14+
- repo: https://github.com/commitizen-tools/commitizen
15+
rev: v2.24.0 # automatically updated by Commitizen
1616
hooks:
1717
- id: commitizen
1818
stages: [commit-msg]

pyproject.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ version = "2.24.0"
33
tag_format = "v$version"
44
version_files = [
55
"pyproject.toml:version",
6-
"commitizen/__version__.py"
6+
"commitizen/__version__.py",
7+
".pre-commit-config.yaml:rev.\\s+(?=[^\\n]+Commitizen)"
78
]
89

910
[tool.black]

0 commit comments

Comments
 (0)