From ab74a062e33cf0eca6517505349eac8d7bed384c Mon Sep 17 00:00:00 2001 From: Bharat Date: Wed, 29 Jul 2026 13:45:53 +0100 Subject: [PATCH] PLAT-2003/ci: relock uv.lock on version bump bumpver rewrites the version in pyproject.toml but not in uv.lock, so every release desynced the two. With the uv-lock pre-commit hook now in place that surfaces as a red pre-commit on the next PR. Add the pre_commit_hook the other repos already use, so the bump commit carries the regenerated lock. `--no-upgrade` is deliberate: it reconciles the lock to pyproject without pulling newer versions of anything else. A bare `uv lock` here would sweep in every deferred dependabot upgrade at bump time, which is how ratatosk ended up with pydantic 2.13.4 (PLAT-2000). --- bin/bumpver-hook.sh | 4 ++++ pyproject.toml | 1 + 2 files changed, 5 insertions(+) create mode 100755 bin/bumpver-hook.sh diff --git a/bin/bumpver-hook.sh b/bin/bumpver-hook.sh new file mode 100755 index 0000000..f4cd6c7 --- /dev/null +++ b/bin/bumpver-hook.sh @@ -0,0 +1,4 @@ +#!/bin/bash +set -e +uv lock --no-upgrade +git add uv.lock diff --git a/pyproject.toml b/pyproject.toml index c9772b5..440a9ea 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -21,6 +21,7 @@ prepare-commit-msg = "git_hooks.prepare_commit_msg:main" commit-msg = "git_hooks.commit_msg:main" [tool.bumpver] +pre_commit_hook = "bin/bumpver-hook.sh" current_version = "26.03.10" version_pattern = "0Y.0M.0D[-INC0]" commit_message = "Bump version {old_version} -> {new_version}"