Skip to content

Commit 75d8c88

Browse files
renovate[bot]pre-commit-ci[bot]AlexWaygood
authored
Update most test/lint dependencies (#14354)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Alex Waygood <[email protected]>
1 parent ca3f841 commit 75d8c88

File tree

6 files changed

+11
-10
lines changed

6 files changed

+11
-10
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ repos:
1111
args: [--fix=lf]
1212
- id: check-case-conflict
1313
- repo: https://github.com/astral-sh/ruff-pre-commit
14-
rev: v0.11.4 # must match requirements-tests.txt
14+
rev: v0.12.1 # must match requirements-tests.txt
1515
hooks:
1616
- id: ruff
1717
name: Run ruff on stubs, tests and scripts

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,8 @@ ignore = [
159159
# Used for direct, non-subclass type comparison, for example: `type(val) is str`
160160
# see https://github.com/astral-sh/ruff/issues/6465
161161
"E721", # Do not compare types, use `isinstance()`
162+
# Highly opinionated, and it's often necessary to violate it
163+
"PLC0415", # `import` should be at the top-level of a file
162164
# Leave the size and complexity of tests to human interpretation
163165
"PLR09", # Too many ...
164166
# Too many magic number "2" that are preferable inline. https://github.com/astral-sh/ruff/issues/10009

requirements-tests.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
11
# Type checkers that we test our stubs against. These should always
22
# be pinned to a specific version to make failure reproducible.
3-
mypy==1.16.0
3+
mypy==1.16.1
44
pyright==1.1.400
55
# pytype can be installed on Windows, but requires building wheels, let's not do that on the CI
66
pytype==2024.10.11; platform_system != "Windows" and python_version >= "3.10" and python_version < "3.13"
77

88
# Libraries used by our various scripts.
99
# TODO (2025-05-09): Installing this on Python 3.14 on Windows fails at
1010
# the moment.
11-
aiohttp==3.11.15; python_version < "3.14"
11+
aiohttp==3.12.13; python_version < "3.14"
1212
# TODO (2025-05-09): No wheels exist for Python 3.14 yet, slowing down CI
1313
# considerably and prone to fail.
1414
grpcio-tools>=1.66.2; python_version < "3.14" # For grpc_tools.protoc
1515
mypy-protobuf==3.6.0
16-
packaging==24.2
16+
packaging==25.0
1717
pathspec>=0.11.1
1818
pre-commit
1919
# Required by create_baseline_stubs.py. Must match .pre-commit-config.yaml.
20-
ruff==0.11.4
20+
ruff==0.12.1
2121
# TODO (2025-05-07): Dependency libcst doesn't support Python 3.14 yet.
2222
stubdefaulter==0.1.0; python_version < "3.14"
2323
termcolor>=2.3
2424
tomli==2.2.1
25-
tomlkit==0.13.2
25+
tomlkit==0.13.3
2626
typing_extensions>=4.14.0rc1
27-
uv==0.7.4
27+
uv==0.7.17
2828

2929
# Utilities for typeshed infrastructure scripts.
3030
ts_utils @ file:lib

stdlib/asyncio/__init__.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# ruff: noqa: PLR5501 # This condition is so big, it's clearer to keep to platform condition in two blocks
1+
# This condition is so big, it's clearer to keep to platform condition in two blocks
22
# Can't NOQA on a specific line: https://github.com/plinss/flake8-noqa/issues/22
33
import sys
44
from collections.abc import Awaitable, Coroutine, Generator

stdlib/typing.pyi

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# Since this module defines "overload" it is not recognized by Ruff as typing.overload
2-
# ruff: noqa: F811
32
# TODO: The collections import is required, otherwise mypy crashes.
43
# https://github.com/python/mypy/issues/16744
54
import collections # noqa: F401 # pyright: ignore[reportUnusedImport]

tests/pyright_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def main() -> None:
3737
# version installed into the virtual environment, due to failures on some
3838
# platforms. https://github.com/python/typeshed/issues/11614
3939
os.environ["PYRIGHT_PYTHON_FORCE_VERSION"] = pyright_version
40-
command = [npx, f"pyright@{pyright_version}"] + sys.argv[1:]
40+
command = [npx, f"pyright@{pyright_version}", *sys.argv[1:]]
4141
print_command(command)
4242

4343
ret = subprocess.run(command, check=False).returncode

0 commit comments

Comments
 (0)