Skip to content

Commit 1406050

Browse files
committed
Fix lint issues.
1 parent 9815441 commit 1406050

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

cwltool/singularity.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,15 @@ def is_apptainer_1_or_newer() -> bool:
7474
return False
7575
return v[0][0] >= 1
7676

77+
7778
def is_apptainer_1_1_or_newer() -> bool:
78-
"""
79-
Check if apptainer singularity distribution is version 1.1 or higher.
80-
"""
79+
"""Check if apptainer singularity distribution is version 1.1 or higher."""
8180
v = get_version()
8281
if v[1] != "apptainer":
8382
return False
8483
return v[0][0] >= 2 or (v[0][0] >= 1 and v[0][1] >= 1)
8584

85+
8686
def is_version_2_6() -> bool:
8787
"""
8888
Check if this singularity version is exactly version 2.6.
@@ -126,11 +126,13 @@ def is_version_3_9_or_newer() -> bool:
126126
v = get_version()
127127
return v[0][0] >= 4 or (v[0][0] == 3 and v[0][1] >= 9)
128128

129+
129130
def is_version_3_10_or_newer() -> bool:
130131
"""Detect if Singularity v3.10+ is available."""
131132
v = get_version()
132133
return v[0][0] >= 4 or (v[0][0] == 3 and v[0][1] >= 10)
133134

135+
134136
def _normalize_image_id(string: str) -> str:
135137
return string.replace("/", "_") + ".img"
136138

@@ -479,7 +481,7 @@ def create_runtime(
479481
singularity_exec_command = "exec"
480482
if is_apptainer_1_1_or_newer() or is_version_3_10_or_newer():
481483
singularity_exec_command = "run --no-eval"
482-
484+
483485
runtime = [
484486
"singularity",
485487
"--quiet",

0 commit comments

Comments
 (0)