From d80098a9a298d37ebdac942d4b83c6ab50f7c074 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 1 Jul 2026 00:38:42 +0000 Subject: [PATCH 1/2] Update most test/lint dependencies --- .pre-commit-config.yaml | 4 ++-- requirements-tests.txt | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index aed73938e69e..da1708ab17ee 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -11,7 +11,7 @@ repos: args: [--fix=lf] - id: check-case-conflict - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.15.9 # must match requirements-tests.txt + rev: v0.15.20 # must match requirements-tests.txt hooks: - id: ruff name: Run ruff on stubs, tests and scripts @@ -27,7 +27,7 @@ repos: - "--unsafe-fixes" files: '.*test_cases/.+\.py$' - repo: https://github.com/psf/black-pre-commit-mirror - rev: 26.5.0 + rev: 26.5.1 hooks: - id: black - repo: https://github.com/pycqa/flake8 diff --git a/requirements-tests.txt b/requirements-tests.txt index b081936fedab..20f42d4193a3 100644 --- a/requirements-tests.txt +++ b/requirements-tests.txt @@ -6,19 +6,19 @@ pyright==1.1.411 # Libraries used by our various scripts. aiohttp==3.14.1 grpcio-tools>=1.76.0; python_version < "3.15" # For grpc_tools.protoc -mypy-protobuf==5.0.0; python_version < "3.15" -packaging==26.0 +mypy-protobuf==5.1.0; python_version < "3.15" +packaging==26.2 pathspec>=1.1.1 pre-commit # Required by create_baseline_stubs.py. # stubdefaulter depends on libcst, which does not yet install cleanly on Python 3.15. -ruff==0.15.8 +ruff==0.15.20 stubdefaulter==0.1.0; python_version < "3.15" termcolor>=2.3 tomli==2.4.1; python_version < "3.11" -tomlkit==0.14.0 +tomlkit==0.15.0 typing_extensions>=4.16.0rc2 -uv==0.11.15 +uv==0.11.26 # Utilities for typeshed infrastructure scripts. ts_utils @ file:lib From aea234caa85618d298191cd2ac8af24445c23755 Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Wed, 1 Jul 2026 08:06:02 +0100 Subject: [PATCH 2/2] Update metadata.py --- lib/ts_utils/metadata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ts_utils/metadata.py b/lib/ts_utils/metadata.py index a587b693b7a9..073c77210d46 100644 --- a/lib/ts_utils/metadata.py +++ b/lib/ts_utils/metadata.py @@ -374,7 +374,7 @@ def update_metadata(distribution: str, **new_values: object) -> dict[str, object new_key = key.replace("_", "-") data[new_key] = data.pop(key) with path.open("w", encoding="UTF-8") as f: - tomlkit.dump(data, f) # pyright: ignore[reportUnknownMemberType] # tomlkit.dump has partially unknown Mapping type + tomlkit.dump(data, f) return data