Skip to content

Commit de06258

Browse files
committed
Fix more Black complaints
Signed-off-by: M Q <mingmelvinq@nvidia.com>
1 parent 1271733 commit de06258

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

monai/deploy/packager/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ def build_image(args: dict, temp_dir: str):
237237
dockerignore_file.write(docker_ignore_template)
238238

239239
# Build dockerfile into an MAP image
240-
docker_build_cmd = f'''docker build -f {docker_file_path!r} -t {tag} {temp_dir!r}'''
240+
docker_build_cmd = f"""docker build -f {docker_file_path!r} -t {tag} {temp_dir!r}"""
241241
if sys.platform != "win32":
242242
docker_build_cmd += """ --build-arg MONAI_UID=$(id -u) --build-arg MONAI_GID=$(id -g)"""
243243
if no_cache:

monai/deploy/runner/runner.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ def run_app(map_name: str, input_path: Path, output_path: Path, app_info: dict,
103103
if not posixpath.isabs(map_output):
104104
map_output = posixpath.join(app_info["working-directory"], map_output)
105105

106-
cmd += f' -e MONAI_INPUTPATH={map_input!r}'
107-
cmd += f' -e MONAI_OUTPUTPATH={map_output!r}'
106+
cmd += f" -e MONAI_INPUTPATH={map_input!r}"
107+
cmd += f" -e MONAI_OUTPUTPATH={map_output!r}"
108108
# TODO(bhatt-piyush): Handle model environment correctly (maybe solved by fixing 'monai-exec')
109109
cmd += " -e MONAI_MODELPATH=/opt/monai/models"
110110

tests/unit/test_runner.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,8 @@ def test_run_app_for_input_output_path_with_space(
168168
expected_container_output /= app_manifest["working-directory"]
169169

170170
returncode = runner.run_app(sample_map_name, input_path, output_path, app_manifest, faux_pkg_manifest, quiet)
171-
input_path_with_quotes = f'{input_path.absolute()!r}'
172-
output_path_with_quotes = f'{output_path.absolute()!r}'
171+
input_path_with_quotes = f"{input_path.absolute()!r}"
172+
output_path_with_quotes = f"{output_path.absolute()!r}"
173173

174174
assert returncode == return_value
175175
mock_run_cmd.assert_called_once_with(ContainsString(sample_map_name))

0 commit comments

Comments
 (0)