Skip to content

Commit 2748f5a

Browse files
authored
[pre-commit.ci] pre-commit autoupdate (#3340)
2 parents 97ca7ea + bc6a72e commit 2748f5a

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
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.13.1
27+
rev: v0.13.2
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.36.2
41+
rev: v1.36.3
4242
hooks:
4343
- id: typos
4444
- repo: https://github.com/sphinx-contrib/sphinx-lint
4545
rev: v1.0.0
4646
hooks:
4747
- id: sphinx-lint
4848
- repo: https://github.com/woodruffw/zizmor-pre-commit
49-
rev: v1.13.0
49+
rev: v1.14.2
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.8.19
76+
rev: 0.8.22
7777
hooks:
7878
# Compile requirements
7979
- id: pip-compile

src/trio/_tests/test_path.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ async def test_classmethods() -> None:
254254
assert isinstance(await trio.Path.home(), trio.Path)
255255

256256
# pathlib.Path has only two classmethods
257-
assert str(await trio.Path.home()) == os.path.expanduser("~")
257+
assert str(await trio.Path.home()) == os.path.expanduser("~") # noqa: ASYNC240
258258
assert str(await trio.Path.cwd()) == os.getcwd()
259259

260260
# Wrapped method has docstring

src/trio/_tests/test_subprocess.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -714,17 +714,17 @@ async def test_run_process_background_fail() -> None:
714714
async def test_for_leaking_fds() -> None:
715715
gc.collect() # address possible flakiness on PyPy
716716

717-
starting_fds = set(SyncPath("/dev/fd").iterdir())
717+
starting_fds = set(SyncPath("/dev/fd").iterdir()) # noqa: ASYNC240
718718
await run_process(EXIT_TRUE)
719-
assert set(SyncPath("/dev/fd").iterdir()) == starting_fds
719+
assert set(SyncPath("/dev/fd").iterdir()) == starting_fds # noqa: ASYNC240
720720

721721
with pytest.raises(subprocess.CalledProcessError):
722722
await run_process(EXIT_FALSE)
723-
assert set(SyncPath("/dev/fd").iterdir()) == starting_fds
723+
assert set(SyncPath("/dev/fd").iterdir()) == starting_fds # noqa: ASYNC240
724724

725725
with pytest.raises(PermissionError):
726726
await run_process(["/dev/fd/0"])
727-
assert set(SyncPath("/dev/fd").iterdir()) == starting_fds
727+
assert set(SyncPath("/dev/fd").iterdir()) == starting_fds # noqa: ASYNC240
728728

729729

730730
async def test_run_process_internal_error(monkeypatch: pytest.MonkeyPatch) -> None:

test-requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ requests==2.32.5
140140
# via sphinx
141141
roman-numerals-py==3.1.0 ; python_full_version >= '3.11'
142142
# via sphinx
143-
ruff==0.13.1
143+
ruff==0.13.2
144144
# via -r test-requirements.in
145145
sniffio==1.3.1
146146
# via -r test-requirements.in
@@ -202,7 +202,7 @@ typing-extensions==4.15.0
202202
# virtualenv
203203
urllib3==2.5.0
204204
# via requests
205-
uv==0.8.19
205+
uv==0.8.22
206206
# via -r test-requirements.in
207207
virtualenv==20.34.0
208208
# via pre-commit

0 commit comments

Comments
 (0)