From 992e91abc732adc088f5cd3264ba0f843973258c Mon Sep 17 00:00:00 2001 From: Kevin Turcios Date: Thu, 9 Apr 2026 23:19:37 -0500 Subject: [PATCH] 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. --- .github/workflows/ci.yaml | 2 ++ codeflash-benchmark/codeflash_benchmark/version.py | 2 +- codeflash/version.py | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 87422cbd5..63c83149f 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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: | diff --git a/codeflash-benchmark/codeflash_benchmark/version.py b/codeflash-benchmark/codeflash_benchmark/version.py index 96ae2807e..0f1baf8bc 100644 --- a/codeflash-benchmark/codeflash_benchmark/version.py +++ b/codeflash-benchmark/codeflash_benchmark/version.py @@ -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" diff --git a/codeflash/version.py b/codeflash/version.py index 96ae2807e..0f1baf8bc 100644 --- a/codeflash/version.py +++ b/codeflash/version.py @@ -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"