Skip to content

Commit 26197d4

Browse files
committed
fix: codestyle
1 parent 79ae090 commit 26197d4

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

src/ansys/dpf/core/server_factory.py

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@
2828
"""
2929

3030
import io
31+
import json
3132
import logging
3233
import os
3334
import subprocess
3435
import time
35-
import json
3636

3737
from ansys.dpf.gate.load_api import (
3838
_find_outdated_ansys_version,
@@ -92,18 +92,22 @@ def __init__(
9292
from ansys.dpf.core import LOCAL_DOWNLOADED_EXAMPLES_PATH
9393

9494
if use_docker:
95-
args = ['docker', 'inspect', '-f', 'json', docker_name]
95+
args = ["docker", "inspect", "-f", "json", docker_name]
9696
inspect_docker_image = subprocess.run(args, capture_output=True)
9797
if inspect_docker_image.stderr:
98-
raise Exception(f"Specified docker image not found. Verify that the image name '{docker_name}' is valid and the image file is available locally.")
98+
raise Exception(
99+
f"Specified docker image not found. Verify that the image name '{docker_name}' is valid and the image file is available locally."
100+
)
99101

100102
output = json.loads(inspect_docker_image.stdout)
101-
image_os = output[0]['Os']
103+
image_os = output[0]["Os"]
102104
if mounted_volumes is None:
103-
if image_os == 'linux':
105+
if image_os == "linux":
104106
mounted_volumes = {LOCAL_DOWNLOADED_EXAMPLES_PATH: "/tmp/downloaded_examples"}
105-
else: # image is windows
106-
mounted_volumes = {LOCAL_DOWNLOADED_EXAMPLES_PATH: "C:\\Users\\ContainerAdministrator\\AppData\\Local\\Temp\\downloaded_examples"}
107+
else: # image is windows
108+
mounted_volumes = {
109+
LOCAL_DOWNLOADED_EXAMPLES_PATH: "C:\\Users\\ContainerAdministrator\\AppData\\Local\\Temp\\downloaded_examples"
110+
}
107111

108112
self._use_docker = use_docker
109113
self._docker_name = docker_name

0 commit comments

Comments
 (0)