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/.* 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)