File tree Expand file tree Collapse file tree 6 files changed +11
-10
lines changed Expand file tree Collapse file tree 6 files changed +11
-10
lines changed Original file line number Diff line number Diff line change 11
11
args : [--fix=lf]
12
12
- id : check-case-conflict
13
13
- 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
15
15
hooks :
16
16
- id : ruff
17
17
name : Run ruff on stubs, tests and scripts
Original file line number Diff line number Diff line change @@ -159,6 +159,8 @@ ignore = [
159
159
# Used for direct, non-subclass type comparison, for example: `type(val) is str`
160
160
# see https://github.com/astral-sh/ruff/issues/6465
161
161
" 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
162
164
# Leave the size and complexity of tests to human interpretation
163
165
" PLR09" , # Too many ...
164
166
# Too many magic number "2" that are preferable inline. https://github.com/astral-sh/ruff/issues/10009
Original file line number Diff line number Diff line change 1
1
# Type checkers that we test our stubs against. These should always
2
2
# be pinned to a specific version to make failure reproducible.
3
- mypy==1.16.0
3
+ mypy==1.16.1
4
4
pyright==1.1.400
5
5
# pytype can be installed on Windows, but requires building wheels, let's not do that on the CI
6
6
pytype==2024.10.11; platform_system != "Windows" and python_version >= "3.10" and python_version < "3.13"
7
7
8
8
# Libraries used by our various scripts.
9
9
# TODO (2025-05-09): Installing this on Python 3.14 on Windows fails at
10
10
# the moment.
11
- aiohttp==3.11.15 ; python_version < "3.14"
11
+ aiohttp==3.12.13 ; python_version < "3.14"
12
12
# TODO (2025-05-09): No wheels exist for Python 3.14 yet, slowing down CI
13
13
# considerably and prone to fail.
14
14
grpcio-tools>=1.66.2; python_version < "3.14" # For grpc_tools.protoc
15
15
mypy-protobuf==3.6.0
16
- packaging==24.2
16
+ packaging==25.0
17
17
pathspec>=0.11.1
18
18
pre-commit
19
19
# Required by create_baseline_stubs.py. Must match .pre-commit-config.yaml.
20
- ruff==0.11.4
20
+ ruff==0.12.1
21
21
# TODO (2025-05-07): Dependency libcst doesn't support Python 3.14 yet.
22
22
stubdefaulter==0.1.0; python_version < "3.14"
23
23
termcolor>=2.3
24
24
tomli==2.2.1
25
- tomlkit==0.13.2
25
+ tomlkit==0.13.3
26
26
typing_extensions>=4.14.0rc1
27
- uv==0.7.4
27
+ uv==0.7.17
28
28
29
29
# Utilities for typeshed infrastructure scripts.
30
30
ts_utils @ file:lib
Original file line number Diff line number Diff line change 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
2
2
# Can't NOQA on a specific line: https://github.com/plinss/flake8-noqa/issues/22
3
3
import sys
4
4
from collections .abc import Awaitable , Coroutine , Generator
Original file line number Diff line number Diff line change 1
1
# Since this module defines "overload" it is not recognized by Ruff as typing.overload
2
- # ruff: noqa: F811
3
2
# TODO: The collections import is required, otherwise mypy crashes.
4
3
# https://github.com/python/mypy/issues/16744
5
4
import collections # noqa: F401 # pyright: ignore[reportUnusedImport]
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ def main() -> None:
37
37
# version installed into the virtual environment, due to failures on some
38
38
# platforms. https://github.com/python/typeshed/issues/11614
39
39
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 :] ]
41
41
print_command (command )
42
42
43
43
ret = subprocess .run (command , check = False ).returncode
You can’t perform that action at this time.
0 commit comments