From 7dd8b7f14ba000aaed0548711f5b61f78280d1cb Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 7 Jul 2025 17:08:12 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.11.12 → v0.12.2](https://github.com/astral-sh/ruff-pre-commit/compare/v0.11.12...v0.12.2) - [github.com/pre-commit/mirrors-mypy: v1.16.0 → v1.16.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.16.0...v1.16.1) --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index bed7575f2..f6dfa701f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -26,7 +26,7 @@ repos: # autoformat and lint Python code - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.11.12 + rev: v0.12.2 hooks: - id: ruff types_or: @@ -43,7 +43,7 @@ repos: exclude: zmq/constants.py - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.16.0 + rev: v1.16.1 hooks: - id: mypy files: zmq/.* From 911110064734209b208a38b0a1a904965a2d83c3 Mon Sep 17 00:00:00 2001 From: Min RK Date: Fri, 1 Aug 2025 22:01:10 -0700 Subject: [PATCH 2/2] pre-commit run --- examples/recv_into/recv_into_array.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/examples/recv_into/recv_into_array.py b/examples/recv_into/recv_into_array.py index 7c5e499fb..0684db791 100644 --- a/examples/recv_into/recv_into_array.py +++ b/examples/recv_into/recv_into_array.py @@ -15,11 +15,9 @@ def main() -> None: B = np.empty_like(A) assert not (A == B).all() - with ( - zmq.Context() as ctx, - ctx.socket(zmq.PUSH) as push, - ctx.socket(zmq.PULL) as pull, - ): + with zmq.Context() as ctx, ctx.socket(zmq.PUSH) as push, ctx.socket( + zmq.PULL + ) as pull: push.bind(url) pull.connect(url) print("sending:\n", A)