Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 38907bc

Browse files
ci(pre-commit): Remove version_files lookahead
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, we search for "Commitizen," which is in a comment to the right of the version number. Remove the lookahead assertion for "Commitizen," and instead simply consume it when matching now that version_files regexes don't need to exclusively match to the left of the version number.
1 parent c0f3951 commit 38907bc

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:.+Commitizen"
88
]
99

1010
[tool.black]

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /