We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2110a14 + f093717 commit cd7e3ddCopy full SHA for cd7e3dd
commitizen/bump.py
@@ -141,8 +141,7 @@ def update_version_in_files(
141
"""
142
# TODO: separate check step and write step
143
for location in files:
144
- filepath, *regexes = location.split(":")
145
- regex = regexes[0] if regexes else None
+ filepath, _, regex = location.partition(":")
146
147
with open(filepath, "r") as f:
148
version_file = f.read()
pyproject.toml
@@ -4,7 +4,7 @@ tag_format = "v$version"
4
version_files = [
5
"pyproject.toml:version",
6
"commitizen/__version__.py",
7
- ".pre-commit-config.yaml:rev.\\s+(?=[^\\n]+Commitizen)"
+ ".pre-commit-config.yaml:rev:.\\s+(?=[^\\n]+Commitizen)"
8
]
9
10
[tool.black]
0 commit comments