From 39aec71ee0ad06cecd0fa3c9bda349859c48c8d1 Mon Sep 17 00:00:00 2001 From: Dan Guido Date: Tue, 20 Jan 2026 12:42:16 -0500 Subject: [PATCH] Update ty and uv_build versions, add error-on-warning - Bump uv_build from 0.8.x to 0.9.x - Bump ty minimum from 0.0.2 to 0.0.8 - Add error-on-warning = true to treat warnings as errors Co-Authored-By: Claude Opus 4.5 --- {{cookiecutter.project_slug}}/pyproject.toml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/{{cookiecutter.project_slug}}/pyproject.toml b/{{cookiecutter.project_slug}}/pyproject.toml index 50bf12a..d287159 100644 --- a/{{cookiecutter.project_slug}}/pyproject.toml +++ b/{{cookiecutter.project_slug}}/pyproject.toml @@ -22,7 +22,7 @@ dependencies = [] requires-python = ">=3.10" [build-system] -requires = ["uv_build>=0.8.14,<0.9.0"] +requires = ["uv_build>=0.9.0,<0.10.0"] build-backend = "uv_build" [dependency-groups] @@ -36,7 +36,7 @@ lint = [ # NOTE: ruff is under active development, so we pin conservatively here # and let Dependabot periodically perform this update. "ruff ~= 0.14.0", - "ty >=0.0.2", + "ty >=0.0.8", {%- if cookiecutter.docstring_coverage %} "interrogate", {%- endif %} @@ -63,6 +63,9 @@ Source = "https://github.com/{{ cookiecutter.github_username }}/{{ cookiecutter. # don't attempt code coverage for the CLI entrypoints omit = ["{{ cookiecutter.__project_src_path }}/_cli.py"] +[tool.ty.terminal] +error-on-warning = true + [tool.ty.environment] python-version = "3.10"