Skip to content

Commit c0fa9bc

Browse files
authored
[pre-commit.ci] pre-commit autoupdate (#3368)
2 parents b670a91 + e93fdf1 commit c0fa9bc

3 files changed

Lines changed: 9 additions & 7 deletions

File tree

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ repos:
2020
- id: sort-simple-yaml
2121
files: .pre-commit-config.yaml
2222
- repo: https://github.com/psf/black-pre-commit-mirror
23-
rev: 25.11.0
23+
rev: 25.12.0
2424
hooks:
2525
- id: black
2626
- repo: https://github.com/astral-sh/ruff-pre-commit
27-
rev: v0.14.7
27+
rev: v0.14.8
2828
hooks:
2929
- id: ruff-check
3030
types: [file]
@@ -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.14
76+
rev: 0.9.16
7777
hooks:
7878
# Compile requirements
7979
- id: pip-compile

src/trio/_core/_traps.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@ class PermanentlyDetachCoroutineObject:
6666
def _real_async_yield(
6767
obj: MessageType,
6868
) -> Generator[MessageType, None, None]:
69-
return (yield obj)
69+
# "Using `yield` and `return {value}` in a generator function can
70+
# lead to confusing behavior"
71+
return (yield obj) # noqa: B901
7072

7173

7274
# Real yield value is from trio's main loop, but type checkers can't

test-requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ attrs==25.4.0
1414
# outcome
1515
babel==2.17.0
1616
# via sphinx
17-
black==25.11.0 ; implementation_name == 'cpython'
17+
black==25.12.0 ; implementation_name == 'cpython'
1818
# via -r test-requirements.in
1919
certifi==2025.11.12
2020
# via requests
@@ -136,7 +136,7 @@ requests==2.32.5
136136
# via sphinx
137137
roman-numerals==3.1.0 ; python_full_version >= '3.11'
138138
# via sphinx
139-
ruff==0.14.7
139+
ruff==0.14.8
140140
# via -r test-requirements.in
141141
sniffio==1.3.1
142142
# via -r test-requirements.in
@@ -196,7 +196,7 @@ typing-extensions==4.15.0
196196
# virtualenv
197197
urllib3==2.5.0
198198
# via requests
199-
uv==0.9.14
199+
uv==0.9.16
200200
# via -r test-requirements.in
201201
virtualenv==20.35.4
202202
# via pre-commit

0 commit comments

Comments
 (0)