From 61f36eb253bdeb4362d96f2b9db864c91e2bb09e Mon Sep 17 00:00:00 2001 From: Trenton H <797416+stumpylog@users.noreply.github.com> Date: Mon, 28 Sep 2026 11:49:21 -0700 Subject: [PATCH] Chore: Disallow prerelease resolution in uv (#14296) uv's default "if-necessary" prerelease policy will silently select a prerelease package when no stable release satisfies the combined constraint set, even without an explicit opt-in. Disallow pre-releases instead --- pyproject.toml | 1 + uv.lock | 3 +++ 2 files changed, 4 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 9ef262baf..2c26a4b18 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -150,6 +150,7 @@ typing = [ [tool.uv] required-version = ">=0.9.0" +prerelease = "disallow" environments = [ "sys_platform == 'darwin'", "sys_platform == 'linux'", diff --git a/uv.lock b/uv.lock index 29fd85060..574815fa1 100644 --- a/uv.lock +++ b/uv.lock @@ -18,6 +18,9 @@ supported-markers = [ "sys_platform == 'linux'", ] +[options] +prerelease-mode = "disallow" + [[package]] name = "aiohappyeyeballs" version = "2.6.1"