Skip to content

Commit 4b4d734

Browse files
authored
Merge pull request #2110 from zeromq/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2 parents f75d502 + 9111100 commit 4b4d734

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ repos:
2626

2727
# autoformat and lint Python code
2828
- repo: https://github.com/astral-sh/ruff-pre-commit
29-
rev: v0.11.12
29+
rev: v0.12.2
3030
hooks:
3131
- id: ruff
3232
types_or:
@@ -43,7 +43,7 @@ repos:
4343
exclude: zmq/constants.py
4444

4545
- repo: https://github.com/pre-commit/mirrors-mypy
46-
rev: v1.16.0
46+
rev: v1.16.1
4747
hooks:
4848
- id: mypy
4949
files: zmq/.*

examples/recv_into/recv_into_array.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,9 @@ def main() -> None:
1515
B = np.empty_like(A)
1616
assert not (A == B).all()
1717

18-
with (
19-
zmq.Context() as ctx,
20-
ctx.socket(zmq.PUSH) as push,
21-
ctx.socket(zmq.PULL) as pull,
22-
):
18+
with zmq.Context() as ctx, ctx.socket(zmq.PUSH) as push, ctx.socket(
19+
zmq.PULL
20+
) as pull:
2321
push.bind(url)
2422
pull.connect(url)
2523
print("sending:\n", A)

0 commit comments

Comments
 (0)