Skip to content

Commit 0144f38

Browse files
authored
Merge pull request #2064 from zeromq/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2 parents 5209041 + f941fdc commit 0144f38

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ repos:
1515
additional_dependencies:
1616
- ruff
1717
- repo: https://github.com/executablebooks/mdformat
18-
rev: 0.7.21 # Use the ref you want to point at
18+
rev: 0.7.22 # Use the ref you want to point at
1919
hooks:
2020
- id: mdformat
2121
# Optionally add plugins
@@ -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.8.6
29+
rev: v0.9.4
3030
hooks:
3131
- id: ruff
3232
types_or:

tests/conftest.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,9 @@ def assert_raises_errno(errno):
159159
try:
160160
yield
161161
except zmq.ZMQError as e:
162-
assert (
163-
e.errno == errno
164-
), f"wrong error raised, expected {zmq.ZMQError(errno)} got {zmq.ZMQError(e.errno)}"
162+
assert e.errno == errno, (
163+
f"wrong error raised, expected {zmq.ZMQError(errno)} got {zmq.ZMQError(e.errno)}"
164+
)
165165
else:
166166
pytest.fail(f"Expected {zmq.ZMQError(errno)}, no error raised")
167167

zmq/eventloop/_deprecated.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,9 +199,10 @@ def install():
199199
# check if tornado's IOLoop is already initialized to something other
200200
# than the pyzmq IOLoop instance:
201201
assert (
202-
(not ioloop.IOLoop.initialized())
203-
or ioloop.IOLoop.instance() is IOLoop.instance()
204-
), "tornado IOLoop already initialized"
202+
not ioloop.IOLoop.initialized()
203+
) or ioloop.IOLoop.instance() is IOLoop.instance(), (
204+
"tornado IOLoop already initialized"
205+
)
205206

206207
if tornado_version >= (3,):
207208
# tornado 3 has an official API for registering new defaults, yay!

0 commit comments

Comments
 (0)