Skip to content

Commit 732f157

Browse files
[pre-commit.ci] pre-commit autoupdate (#3318)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.12.8 → v0.12.9](astral-sh/ruff-pre-commit@v0.12.8...v0.12.9) - [github.com/adhtruong/mirrors-typos: v1.35.3 → v1.35.4](adhtruong/mirrors-typos@v1.35.3...v1.35.4) - [github.com/woodruffw/zizmor-pre-commit: v1.11.0 → v1.12.1](zizmorcore/zizmor-pre-commit@v1.11.0...v1.12.1) - [github.com/astral-sh/uv-pre-commit: 0.8.8 → 0.8.11](astral-sh/uv-pre-commit@0.8.8...0.8.11) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Bypass codecov * Oops, I misremembered the flag * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: A5rocks <[email protected]>
1 parent 393d0cc commit 732f157

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
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.12.8
27+
rev: v0.12.9
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.35.3
41+
rev: v1.35.4
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.11.0
49+
rev: v1.12.1
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.8
76+
rev: 0.8.11
7777
hooks:
7878
# Compile requirements
7979
- id: pip-compile

src/trio/_tests/test_socket.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,9 @@ def setsockopt_tests(sock: SocketType | SocketStream) -> None:
469469
if hasattr(tsocket, "SO_BINDTODEVICE"):
470470
try:
471471
sock.setsockopt(tsocket.SOL_SOCKET, tsocket.SO_BINDTODEVICE, None, 0)
472-
except OSError as e:
472+
except (
473+
OSError
474+
) as e: # pragma: no cover # all CI runners support SO_BINDTODEVICE
473475
assert e.errno in [ # noqa: PT017
474476
# some versions of Python have the attribute yet can run on
475477
# platforms that do not support it. For instance, MacOS 15

test-requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ requests==2.32.4
144144
# via sphinx
145145
roman-numerals-py==3.1.0 ; python_full_version >= '3.11'
146146
# via sphinx
147-
ruff==0.12.8
147+
ruff==0.12.9
148148
# via -r test-requirements.in
149149
sniffio==1.3.1
150150
# via -r test-requirements.in
@@ -205,7 +205,7 @@ typing-extensions==4.14.1
205205
# pyright
206206
urllib3==2.5.0
207207
# via requests
208-
uv==0.8.8
208+
uv==0.8.11
209209
# via -r test-requirements.in
210210
virtualenv==20.32.0
211211
# via pre-commit

0 commit comments

Comments
 (0)