From 71a969f1fda2a4c37d1a76964a71dc8d3093a0ac Mon Sep 17 00:00:00 2001 From: Cas Teeuwen Date: Thu, 22 Oct 2026 15:39:30 +0200 Subject: [PATCH] feat(deps): add exclude-newer so uv only uses artifacts older than 7 days From https://docs.astral.sh/uv/reference/settings/#dependency-metadata --- pyproject.toml | 3 +++ template/pyproject.toml.jinja | 3 +++ 2 files changed, 6 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index bf2c539..e4adecd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -11,5 +11,8 @@ dev = [ "pyyaml", ] +[tool.uv] +exclude-newer = "7 days" + [tool.pytest.ini_options] testpaths = ["tests"] diff --git a/template/pyproject.toml.jinja b/template/pyproject.toml.jinja index ef8d00a..c140924 100644 --- a/template/pyproject.toml.jinja +++ b/template/pyproject.toml.jinja @@ -24,6 +24,9 @@ dependencies = [ "pydantic-settings>=2.0.0", ] +[tool.uv] +exclude-newer = "7 days" + [project.urls] Homepage = "https://github.com/{{ github_username }}/{{ project_github_name }}" Repository = "https://github.com/{{ github_username }}/{{ project_github_name }}"