mirror of
https://github.com/codeflash-ai/codeflash.git
synced 2026-05-04 18:25:17 +00:00
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:
parent
1e8e5d2cc2
commit
992e91abc7
3 changed files with 4 additions and 2 deletions
2
.github/workflows/ci.yaml
vendored
2
.github/workflows/ci.yaml
vendored
|
|
@ -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: |
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue