Skip to content

Commit f093717

Browse files
ci(pre-commit): Include : in version_files regex
Commitizen runs bump on itself to, among other things, manage the version it uses of its own pre-commit hooks. When searching .pre-commit-config.yaml for the version number of Commitizen, look for "rev:" rather than "rev" to reduce the likelihood of a false positive now that colons are permitted in version_files regexes.
1 parent 693e804 commit f093717

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ tag_format = "v$version"
44
version_files = [
55
"pyproject.toml:version",
66
"commitizen/__version__.py",
7-
".pre-commit-config.yaml:rev.\\s+(?=[^\\n]+Commitizen)"
7+
".pre-commit-config.yaml:rev:.\\s+(?=[^\\n]+Commitizen)"
88
]
99

1010
[tool.black]

0 commit comments

Comments
 (0)