fix: prevent ruff auto-format from rewriting version.py placeholders

uv-dynamic-versioning rewrites version.py on every `uv run`, so the
ruff auto-format job was inadvertently committing dev version strings.
Restore version.py files after formatting and revert the ones already
changed on this branch.
This commit is contained in:
Kevin Turcios 2026-04-09 23:19:37 -05:00
parent 1e8e5d2cc2
commit 992e91abc7
3 changed files with 4 additions and 2 deletions

View file

@ -199,6 +199,8 @@ jobs:
run: |
uv run ruff check --fix . || true
uv run ruff format .
# uv-dynamic-versioning rewrites version.py on every `uv run` — discard those changes
git checkout HEAD -- codeflash/version.py codeflash-benchmark/codeflash_benchmark/version.py 2>/dev/null || true
- name: Commit and push fixes
run: |

View file

@ -1,2 +1,2 @@
# These version placeholders will be replaced by uv-dynamic-versioning during build.
__version__ = "0.20.5.post187.dev0+a8c00416"
__version__ = "0.20.5.post151.dev0+95b62113"

View file

@ -1,2 +1,2 @@
# These version placeholders will be replaced by uv-dynamic-versioning during build.
__version__ = "0.20.5.post187.dev0+a8c00416"
__version__ = "0.20.5.post151.dev0+95b62113"