Skip to content

Commit f57fc34

Browse files
israel-dryerclaude
andcommitted
Add explicit files entry so bump-my-version actually edits pyproject.toml
Top-level search/replace patterns are templates, not file bindings. Without [[tool.bumpversion.files]], the bump command edits nothing and the auto-commit fails with 'nothing to commit'. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 048fa32 commit f57fc34

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,3 +104,8 @@ values = ["", "a", "b", "rc"]
104104

105105
[tool.bumpversion.parts.pre_n]
106106
first_value = "1"
107+
108+
[[tool.bumpversion.files]]
109+
filename = "pyproject.toml"
110+
search = "version = \"{current_version}\""
111+
replace = "version = \"{new_version}\""

0 commit comments

Comments
 (0)