Skip to content

Commit 5f00ce3

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 576b896 commit 5f00ce3

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

repo2docker/docker.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,14 +141,13 @@ def build(
141141

142142
yield from execute_cmd(args, True)
143143

144-
145144
def inspect_image(self, image):
146145
"""
147146
Return image configuration if it exists, otherwise None
148147
"""
149-
proc = subprocess.run([
150-
"docker", "image", "inspect", image
151-
], capture_output=True)
148+
proc = subprocess.run(
149+
["docker", "image", "inspect", image], capture_output=True
150+
)
152151

153152
if proc.returncode != 0:
154153
return None

tests/registry/test_registry.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import os
2-
import shutil
32
import secrets
3+
import shutil
44
import socket
55
import subprocess
66
import time
@@ -32,7 +32,8 @@ def dind(registry, host_ip):
3232
"-e",
3333
"DOCKER_TLS_CERTDIR=/opt/certs",
3434
"--privileged",
35-
"--mount", f"type=bind,src={cert_dir},dst=/opt/certs",
35+
"--mount",
36+
f"type=bind,src={cert_dir},dst=/opt/certs",
3637
"-p",
3738
f"{port}:2376",
3839
dind_image,

0 commit comments

Comments
 (0)