Skip to content

Commit a2e041c

Browse files
committed
cleanups
1 parent ad084c8 commit a2e041c

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

cwltool/errors.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,8 @@
88

99
# flake8: noqa: F401
1010

11-
from cwl_utils.errors import WorkflowException as WorkflowException
12-
13-
1411
from cwl_utils.errors import GraphTargetMissingException as GraphTargetMissingException
12+
from cwl_utils.errors import WorkflowException as WorkflowException
1513

1614

1715
class UnsupportedRequirement(WorkflowException):

cwltool/job.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,11 @@ def stderr_stdout_log_path(
461461
with runtimeContext.workflow_eval_lock:
462462
self.output_callback(outputs, processStatus)
463463

464-
if runtimeContext.rm_tmpdir and self.stagedir is not None and os.path.exists(self.stagedir):
464+
if (
465+
runtimeContext.rm_tmpdir
466+
and self.stagedir is not None
467+
and os.path.exists(self.stagedir)
468+
):
465469
_logger.debug(
466470
"[job %s] Removing input staging directory %s",
467471
self.name,
@@ -889,7 +893,6 @@ def docker_monitor(
889893
kill_switch: threading.Event,
890894
) -> None:
891895
"""Record memory usage of the running Docker container. Terminate if kill_switch is activated."""
892-
893896
ks_tm: "Optional[Timer]" = None
894897
cid: Optional[str] = None
895898

cwltool/update.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,11 @@
1111
cast,
1212
)
1313

14+
from ruamel.yaml.comments import CommentedMap, CommentedSeq
1415
from schema_salad.exceptions import ValidationException
1516
from schema_salad.ref_resolver import Loader
1617
from schema_salad.sourceline import SourceLine
1718

18-
from ruamel.yaml.comments import CommentedMap, CommentedSeq
19-
2019
from .loghandler import _logger
2120
from .utils import CWLObjectType, CWLOutputType, aslist, visit_class, visit_field
2221

tests/test_path_checks.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77
from ruamel.yaml.comments import CommentedMap
88
from schema_salad.sourceline import cmap
99

10+
from cwltool.builder import content_limit_respected_read
1011
from cwltool.command_line_tool import CommandLineTool
1112
from cwltool.context import LoadingContext, RuntimeContext
13+
from cwltool.errors import WorkflowException
1214
from cwltool.main import main
1315
from cwltool.stdfsaccess import StdFsAccess
1416
from cwltool.update import INTERNAL_VERSION
15-
from cwltool.utils import CWLObjectType, CONTENT_LIMIT, bytes2str_in_dicts
16-
from cwltool.builder import content_limit_respected_read
17-
from cwltool.errors import WorkflowException
17+
from cwltool.utils import CONTENT_LIMIT, CWLObjectType, bytes2str_in_dicts
1818

1919
from .util import needs_docker
2020

0 commit comments

Comments
 (0)