Skip to content

Commit 07150f9

Browse files
committed
Run format
Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <[email protected]>
1 parent 7d9630e commit 07150f9

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

cwltool/docker.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,9 @@ def get_image(
117117
try:
118118
manifest = json.loads(
119119
str(
120-
subprocess.check_output([self.docker_exec, "inspect", docker_image_id]), # nosec
120+
subprocess.check_output(
121+
[self.docker_exec, "inspect", docker_image_id]
122+
), # nosec
121123
"utf-8",
122124
)
123125
)

tests/test_path_checks.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -222,19 +222,20 @@ def test_content_limit_respected_read() -> None:
222222
b1 = b"abcd" * 100
223223
b1io = BytesIO(b1)
224224

225-
assert(len(b1) < CONTENT_LIMIT)
226-
assert(content_limit_respected_read(b1io) == str("abcd" * 100))
225+
assert len(b1) < CONTENT_LIMIT
226+
assert content_limit_respected_read(b1io) == str("abcd" * 100)
227227

228228
b2 = b"abcd" * 20000
229229
b2io = BytesIO(b2)
230230

231-
assert(len(b2) > CONTENT_LIMIT)
231+
assert len(b2) > CONTENT_LIMIT
232232
with pytest.raises(WorkflowException):
233233
content_limit_respected_read(b2io)
234234

235+
235236
def test_bytes2str_in_dicts() -> None:
236237
d1 = {"foo": b"bar"}
237238

238239
d2 = bytes2str_in_dicts(d1)
239240

240-
assert(d2 == {"foo": "bar"})
241+
assert d2 == {"foo": "bar"}

0 commit comments

Comments
 (0)