From 7eff1bb3ecc0ca3baa38a4727aa979966039fe1c Mon Sep 17 00:00:00 2001 From: Mohamed Rebai <103289862+MohamedRebai41@users.noreply.github.com> Date: Wed, 6 Aug 2025 15:46:59 +0100 Subject: [PATCH] ci(pre-commit): enforce presence of 'upload-time' field in uv.lock (#2920) # What does this PR do? This PR adds a minimum version `0.7.0` to the project. The diff issue happens because an `upload-time` field in the `uv.lock` file did not exist in older uv versions (pre `0.6.15`). This effectively prevents large diffs in PRs from devs that use older versions of uv. Closes #2887 --------- Co-authored-by: Charlie Doern --- pyproject.toml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index e4932a916..bb079790f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,6 +2,9 @@ requires = ["setuptools>=61.0"] build-backend = "setuptools.build_meta" +[tool.uv] +required-version = ">=0.7.0" + [project] name = "llama_stack" version = "0.2.17" @@ -65,14 +68,14 @@ dev = [ "pytest-cov", "pytest-html", "pytest-json-report", - "pytest-socket", # For blocking network access in unit tests - "nbval", # For notebook testing + "pytest-socket", # For blocking network access in unit tests + "nbval", # For notebook testing "black", "ruff", "types-requests", "types-setuptools", "pre-commit", - "ruamel.yaml", # needed for openapi generator + "ruamel.yaml", # needed for openapi generator ] # These are the dependencies required for running unit tests. unit = [