Skip to content

Commit 0ae6e62

Browse files
github-actions[bot]A5rockspre-commit-ci[bot]
authored
Bump dependencies from commit e242fb (#3363)
* Dependency updates * Try to address CI failures * Another pass at CI issues * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update test-requirements.txt * Address mypy changes --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: A5rocks <git@helvetica.moe> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent e242fb6 commit 0ae6e62

File tree

9 files changed

+51
-37
lines changed

9 files changed

+51
-37
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ repos:
2424
hooks:
2525
- id: black
2626
- repo: https://github.com/astral-sh/ruff-pre-commit
27-
rev: v0.14.6
27+
rev: v0.14.7
2828
hooks:
2929
- id: ruff-check
3030
types: [file]
@@ -38,15 +38,15 @@ repos:
3838
# tomli needed on 3.10. tomllib is available in stdlib on 3.11+
3939
- tomli
4040
- repo: https://github.com/adhtruong/mirrors-typos
41-
rev: v1.39.2
41+
rev: v1.40.0
4242
hooks:
4343
- id: typos
4444
- repo: https://github.com/sphinx-contrib/sphinx-lint
4545
rev: v1.0.2
4646
hooks:
4747
- id: sphinx-lint
4848
- repo: https://github.com/woodruffw/zizmor-pre-commit
49-
rev: v1.16.3
49+
rev: v1.18.0
5050
hooks:
5151
- id: zizmor
5252
- repo: local
@@ -73,7 +73,7 @@ repos:
7373
additional_dependencies: ["pyyaml"]
7474
files: ^(test-requirements\.txt)|(\.pre-commit-config\.yaml)$
7575
- repo: https://github.com/astral-sh/uv-pre-commit
76-
rev: 0.9.11
76+
rev: 0.9.14
7777
hooks:
7878
# Compile requirements
7979
- id: pip-compile

docs-requirements.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@ attrs==25.4.0
88
# outcome
99
babel==2.17.0
1010
# via sphinx
11-
beautifulsoup4==4.14.2
11+
beautifulsoup4==4.14.3
1212
# via sphinx-codeautolink
13-
certifi==2025.10.5
13+
certifi==2025.11.12
1414
# via requests
1515
cffi==2.0.0 ; os_name == 'nt' or platform_python_implementation != 'PyPy'
1616
# via
1717
# -r docs-requirements.in
1818
# cryptography
1919
charset-normalizer==3.4.4
2020
# via requests
21-
click==8.3.0
21+
click==8.3.1
2222
# via towncrier
2323
colorama==0.4.6 ; sys_platform == 'win32'
2424
# via
@@ -30,7 +30,7 @@ docutils==0.21.2
3030
# via
3131
# sphinx
3232
# sphinx-rtd-theme
33-
exceptiongroup==1.3.0
33+
exceptiongroup==1.3.1
3434
# via -r docs-requirements.in
3535
idna==3.11
3636
# via

src/trio/_core/_tests/test_asyncgen.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,13 +221,15 @@ async def async_main() -> None:
221221
saved.append(agen())
222222
await saved[-1].asend(None)
223223

224+
ATTEMPT_AMOUNT = 50
225+
224226
# Actually running into the edge case requires that the run_sync_soon task
225227
# execute in between the system nursery's closure and the strong-ification
226228
# of runner.asyncgens. There's about a 25% chance that it doesn't
227229
# (if the run_sync_soon task runs before init on one tick and after init
228230
# on the next tick); if we try enough times, we can make the chance of
229231
# failure as small as we want.
230-
for _attempt in range(50):
232+
for _ in range(ATTEMPT_AMOUNT):
231233
needs_retry = False
232234
record.clear()
233235
saved.clear()
@@ -240,7 +242,7 @@ async def async_main() -> None:
240242
else: # pragma: no cover
241243
pytest.fail(
242244
"Didn't manage to hit the trailing_finalizer_asyncgens case "
243-
f"despite trying {_attempt} times",
245+
f"despite trying {ATTEMPT_AMOUNT} times",
244246
)
245247

246248

src/trio/_core/_tests/test_ki.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def protected_manager() -> Iterator[None]:
164164
@pytest.mark.skipif(async_generator is None, reason="async_generator not installed")
165165
async def test_async_generator_agen_protection() -> None:
166166
@_core.enable_ki_protection
167-
@async_generator # type: ignore[misc] # untyped generator
167+
@async_generator # type: ignore[untyped-decorator]
168168
async def agen_protected1() -> None: # type: ignore[misc] # untyped generator
169169
assert _core.currently_ki_protected()
170170
try:
@@ -173,7 +173,7 @@ async def agen_protected1() -> None: # type: ignore[misc] # untyped generator
173173
assert _core.currently_ki_protected()
174174

175175
@_core.disable_ki_protection
176-
@async_generator # type: ignore[misc] # untyped generator
176+
@async_generator # type: ignore[untyped-decorator]
177177
async def agen_unprotected1() -> None: # type: ignore[misc] # untyped generator
178178
assert not _core.currently_ki_protected()
179179
try:
@@ -182,7 +182,7 @@ async def agen_unprotected1() -> None: # type: ignore[misc] # untyped generator
182182
assert not _core.currently_ki_protected()
183183

184184
# Swap the order of the decorators:
185-
@async_generator # type: ignore[misc] # untyped generator
185+
@async_generator # type: ignore[untyped-decorator]
186186
@_core.enable_ki_protection
187187
async def agen_protected2() -> None: # type: ignore[misc] # untyped generator
188188
assert _core.currently_ki_protected()
@@ -191,7 +191,7 @@ async def agen_protected2() -> None: # type: ignore[misc] # untyped generator
191191
finally:
192192
assert _core.currently_ki_protected()
193193

194-
@async_generator # type: ignore[misc] # untyped generator
194+
@async_generator # type: ignore[untyped-decorator]
195195
@_core.disable_ki_protection
196196
async def agen_unprotected2() -> None: # type: ignore[misc] # untyped generator
197197
assert not _core.currently_ki_protected()

src/trio/_tests/test_exports.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,10 @@ def no_underscores(symbols: Iterable[str]) -> set[str]:
175175
completions = script.complete()
176176
static_names = no_underscores(c.name for c in completions)
177177
elif tool == "mypy":
178+
if sys.implementation.name != "cpython":
179+
# https://github.com/python/mypy/issues/20329
180+
pytest.skip("mypy does not support pypy")
181+
178182
if not RUN_SLOW: # pragma: no cover
179183
pytest.skip("use --run-slow to check against mypy")
180184

@@ -272,6 +276,10 @@ def no_hidden(symbols: Iterable[str]) -> set[str]:
272276
if tool == "jedi" and sys.implementation.name != "cpython":
273277
pytest.skip("jedi does not support pypy")
274278

279+
if tool == "mypy" and sys.implementation.name != "cpython":
280+
# https://github.com/python/mypy/issues/20329
281+
pytest.skip("mypy does not support pypy")
282+
275283
if tool == "mypy":
276284
cache = Path.cwd() / ".mypy_cache"
277285

src/trio/_tests/test_path.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,16 +210,16 @@ async def test_globmethods(path: trio.Path) -> None:
210210
await (path / "bar.dat").write_bytes(b"")
211211

212212
# Path.glob
213-
for _pattern, _results in {
213+
for pattern, results in {
214214
"*.txt": {"bar.txt"},
215215
"**/*.txt": {"_bar.txt", "bar.txt"},
216216
}.items():
217217
entries = set()
218-
for entry in await path.glob(_pattern):
218+
for entry in await path.glob(pattern):
219219
assert isinstance(entry, trio.Path)
220220
entries.add(entry.name)
221221

222-
assert entries == _results
222+
assert entries == results
223223

224224
# Path.rglob
225225
entries = set()

src/trio/socket.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@
2626
# have:
2727
globals().update(
2828
{
29-
_name: getattr(_stdlib_socket, _name)
30-
for _name in _stdlib_socket.__all__
31-
if _name.isupper() and _name not in _bad_symbols
29+
name: getattr(_stdlib_socket, name)
30+
for name in _stdlib_socket.__all__
31+
if name.isupper() and name not in _bad_symbols
3232
},
3333
)
3434

test-requirements.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ cryptography>=41.0.0 # cryptography<41 segfaults on pypy3.10
1111

1212
# Tools
1313
black; implementation_name == "cpython"
14-
mypy
14+
mypy; implementation_name == "cpython"
1515
ruff >= 0.8.0
1616
astor # code generation
1717
uv >= 0.2.24

test-requirements.txt

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,17 @@ babel==2.17.0
1616
# via sphinx
1717
black==25.11.0 ; implementation_name == 'cpython'
1818
# via -r test-requirements.in
19-
certifi==2025.10.5
19+
certifi==2025.11.12
2020
# via requests
2121
cffi==2.0.0 ; os_name == 'nt' or platform_python_implementation != 'PyPy'
2222
# via
2323
# -r test-requirements.in
2424
# cryptography
25-
cfgv==3.4.0
25+
cfgv==3.5.0
2626
# via pre-commit
2727
charset-normalizer==3.4.4
2828
# via requests
29-
click==8.3.0 ; implementation_name == 'cpython'
29+
click==8.3.1 ; implementation_name == 'cpython'
3030
# via black
3131
codespell==2.4.1
3232
# via -r test-requirements.in
@@ -36,7 +36,7 @@ colorama==0.4.6 ; sys_platform == 'win32'
3636
# pylint
3737
# pytest
3838
# sphinx
39-
coverage==7.11.3
39+
coverage==7.12.0
4040
# via -r test-requirements.in
4141
cryptography==46.0.3
4242
# via
@@ -48,9 +48,11 @@ dill==0.4.0
4848
# via pylint
4949
distlib==0.4.0
5050
# via virtualenv
51-
docutils==0.21.2
51+
docutils==0.21.2 ; python_full_version < '3.11'
5252
# via sphinx
53-
exceptiongroup==1.3.0 ; python_full_version < '3.11'
53+
docutils==0.22.3 ; python_full_version >= '3.11'
54+
# via sphinx
55+
exceptiongroup==1.3.1 ; python_full_version < '3.11'
5456
# via
5557
# -r test-requirements.in
5658
# pytest
@@ -73,11 +75,13 @@ jedi==0.19.2 ; implementation_name == 'cpython'
7375
# via -r test-requirements.in
7476
jinja2==3.1.6
7577
# via sphinx
78+
librt==0.6.3 ; implementation_name == 'cpython'
79+
# via mypy
7680
markupsafe==3.0.3
7781
# via jinja2
7882
mccabe==0.7.0
7983
# via pylint
80-
mypy==1.18.2
84+
mypy==1.19.0 ; implementation_name == 'cpython'
8185
# via -r test-requirements.in
8286
mypy-extensions==1.1.0
8387
# via
@@ -97,7 +101,7 @@ packaging==25.0
97101
# sphinx
98102
parso==0.8.5 ; implementation_name == 'cpython'
99103
# via jedi
100-
pathspec==0.12.1
104+
pathspec==0.12.1 ; implementation_name == 'cpython'
101105
# via
102106
# black
103107
# mypy
@@ -108,31 +112,31 @@ platformdirs==4.5.0
108112
# virtualenv
109113
pluggy==1.6.0
110114
# via pytest
111-
pre-commit==4.4.0
115+
pre-commit==4.5.0
112116
# via -r test-requirements.in
113117
pycparser==2.23 ; (implementation_name != 'PyPy' and os_name == 'nt') or (implementation_name != 'PyPy' and platform_python_implementation != 'PyPy')
114118
# via cffi
115119
pygments==2.19.2
116120
# via
117121
# pytest
118122
# sphinx
119-
pylint==4.0.2
123+
pylint==4.0.4
120124
# via -r test-requirements.in
121125
pyopenssl==25.3.0
122126
# via -r test-requirements.in
123127
pyright==1.1.407
124128
# via -r test-requirements.in
125-
pytest==9.0.0
129+
pytest==9.0.1
126130
# via -r test-requirements.in
127131
pytokens==0.3.0 ; implementation_name == 'cpython'
128132
# via black
129133
pyyaml==6.0.3
130134
# via pre-commit
131135
requests==2.32.5
132136
# via sphinx
133-
roman-numerals-py==3.1.0 ; python_full_version >= '3.11'
137+
roman-numerals==3.1.0 ; python_full_version >= '3.11'
134138
# via sphinx
135-
ruff==0.14.6
139+
ruff==0.14.7
136140
# via -r test-requirements.in
137141
sniffio==1.3.1
138142
# via -r test-requirements.in
@@ -142,7 +146,7 @@ sortedcontainers==2.4.0
142146
# via -r test-requirements.in
143147
sphinx==8.1.3 ; python_full_version < '3.11'
144148
# via -r test-requirements.in
145-
sphinx==8.2.3 ; python_full_version >= '3.11'
149+
sphinx==9.0.1 ; python_full_version >= '3.11'
146150
# via -r test-requirements.in
147151
sphinxcontrib-applehelp==2.0.0
148152
# via sphinx
@@ -171,7 +175,7 @@ types-cffi==1.17.0.20250915
171175
# via
172176
# -r test-requirements.in
173177
# types-pyopenssl
174-
types-docutils==0.22.2.20251006
178+
types-docutils==0.22.3.20251115
175179
# via -r test-requirements.in
176180
types-pyopenssl==24.1.0.20240722
177181
# via -r test-requirements.in
@@ -192,7 +196,7 @@ typing-extensions==4.15.0
192196
# virtualenv
193197
urllib3==2.5.0
194198
# via requests
195-
uv==0.9.11
199+
uv==0.9.14
196200
# via -r test-requirements.in
197201
virtualenv==20.35.4
198202
# via pre-commit

0 commit comments

Comments
 (0)