Skip to content

Commit

Permalink
ci(pre-commit): Upgrade commitizen hook
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Kurt-von-Laven committed May 4, 2022
1 parent 354f9ea commit 34436a6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 34436a6

Please sign in to comment.