File tree Expand file tree Collapse file tree 3 files changed +9
-8
lines changed Expand file tree Collapse file tree 3 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 15
15
additional_dependencies :
16
16
- ruff
17
17
- 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
19
19
hooks :
20
20
- id : mdformat
21
21
# Optionally add plugins
26
26
27
27
# autoformat and lint Python code
28
28
- repo : https://github.com/astral-sh/ruff-pre-commit
29
- rev : v0.8.6
29
+ rev : v0.9.4
30
30
hooks :
31
31
- id : ruff
32
32
types_or :
Original file line number Diff line number Diff line change @@ -159,9 +159,9 @@ def assert_raises_errno(errno):
159
159
try :
160
160
yield
161
161
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
+ )
165
165
else :
166
166
pytest .fail (f"Expected { zmq .ZMQError (errno )} , no error raised" )
167
167
Original file line number Diff line number Diff line change @@ -199,9 +199,10 @@ def install():
199
199
# check if tornado's IOLoop is already initialized to something other
200
200
# than the pyzmq IOLoop instance:
201
201
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
+ )
205
206
206
207
if tornado_version >= (3 ,):
207
208
# tornado 3 has an official API for registering new defaults, yay!
You can’t perform that action at this time.
0 commit comments