@@ -183,7 +183,7 @@ def etool_to_cltool(
183183 contents += "\n " + "\n " .join (expressionLib )
184184 contents += (
185185 """
186- var ret = function(){"""
186+ var ret = function(){"""
187187 + escape_expression_field (etool .expression .strip ()[2 :- 1 ])
188188 + """}();
189189process.stdout.write(JSON.stringify(ret));"""
@@ -389,7 +389,7 @@ def generate_etool_from_expr(
389389 expression += "\n var self=inputs.self;"
390390 expression += (
391391 """
392- return {"result": function(){"""
392+ return {"result": function(){"""
393393 + expr [2 :- 2 ]
394394 + """}()};
395395 }"""
@@ -747,7 +747,8 @@ def process_workflow_reqs_and_hints(
747747 """
748748 # TODO: consolidate the generated etools/cltools into a single "_expression_workflow_reqs" step
749749 # TODO: support resourceReq.* references to Workflow.inputs?
750- # ^ By refactoring replace_expr_etool to allow multiple inputs, and connecting all workflow inputs to the generated step
750+ # ^ By refactoring replace_expr_etool to allow multiple inputs,
751+ # and connecting all workflow inputs to the generated step
751752 modified = False
752753 inputs = empty_inputs (workflow )
753754 generated_res_reqs : List [Tuple [str , Union [int , str ]]] = []
@@ -932,7 +933,8 @@ def process_workflow_reqs_and_hints(
932933 raise_type = WorkflowException ,
933934 ).makeError (
934935 f"Entry { index } ,"
935- + "Invalid CWL, if 'entry' is a string, then entryName must be specified."
936+ + "Invalid CWL, if 'entry' "
937+ "is a string, then entryName must be specified."
936938 )
937939 expr = (
938940 '${return {"class": "File", "basename": "'
@@ -1074,7 +1076,8 @@ def process_level_reqs(
10741076 # - Replace the CWL Expression inplace with a CWL parameter reference
10751077 # - Don't create a new Requirement, nor delete the existing Requirement
10761078 # - the Process is passed to replace_expr_with_etool for later searching for JS expressionLibs
1077- # - in addition to adding the input to the step for the ETool/CTool result, add it to the Process.inputs as well
1079+ # - in addition to adding the input to the step for the ETool/CTool result,
1080+ # add it to the Process.inputs as well
10781081 if not process .requirements :
10791082 return False
10801083 modified = False
@@ -1217,7 +1220,7 @@ def process_level_reqs(
12171220 entryname = (
12181221 entry .entryname
12191222 if entryname_expr
1220- else f'"{ entry .entryname } "'
1223+ else f'"{ entry .entryname } "' # noqa: B907
12211224 )
12221225 new_expression = (
12231226 "${var result; var entryname = "
@@ -1811,7 +1814,7 @@ def generate_etool_from_expr2(
18111814 expression += f"\n var self=inputs.{ self_name } ;"
18121815 expression += (
18131816 """
1814- return {"result": function(){"""
1817+ return {"result": function(){"""
18151818 + expr [2 :- 2 ]
18161819 + """}()};
18171820 }"""
0 commit comments