From 6e688b3ac5908012bb813b8c9c75b9659391efa3 Mon Sep 17 00:00:00 2001 From: Andrey Avtomonov Date: Fri, 29 May 2026 15:03:22 +0200 Subject: [PATCH] ci: stop tombi reformatting uv.lock and sync lock to 0.7.0 The pre-commit job failed because tombi-format reformats uv.lock to a layout uv does not produce, so once CI's uv sync re-resolved the stale lock (workspace members still at 0.6.0) and rewrote it, tombi rewrote it back and the hook reported a modified file. Exclude uv.lock from tombi-format so uv stays authoritative for its generated lockfile, and bump the workspace members to 0.7.0 so the lock is current and uv stops re-resolving it (uv lock --check now passes). --- .pre-commit-config.yaml | 6 ++++++ uv.lock | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ec730d50..681cf0ab 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -19,6 +19,12 @@ repos: hooks: - id: tombi-format args: ["--offline"] + # uv.lock is generated and owned by uv, which writes its own canonical + # TOML layout. tombi reformats that layout differently, so once uv + # regenerates the lock (e.g. after a dependency or version change) + # tombi rewrites it and the hook fails on the modified file. Keep uv + # authoritative for its lockfile; tombi still formats hand-edited TOML. + exclude: ^uv\.lock$ - repo: https://github.com/asottile/pyupgrade rev: v3.21.2 diff --git a/uv.lock b/uv.lock index e72fc85a..f04683f3 100644 --- a/uv.lock +++ b/uv.lock @@ -466,7 +466,7 @@ wheels = [ [[package]] name = "ktx-daemon" -version = "0.6.0" +version = "0.7.0" source = { editable = "python/ktx-daemon" } dependencies = [ { name = "fastapi" }, @@ -523,7 +523,7 @@ dev = [ [[package]] name = "ktx-sl" -version = "0.6.0" +version = "0.7.0" source = { editable = "python/ktx-sl" } dependencies = [ { name = "pydantic" },