@@ -350,7 +350,7 @@ def generate_etool_from_expr(
350
350
elif self_type .type :
351
351
new_type = clean_type_ids (self_type .type )
352
352
else :
353
- raise WorkflowException (f"Don't know how to make type from ' { self_type } ' ." )
353
+ raise WorkflowException (f"Don't know how to make type from { self_type !r } ." )
354
354
inputs .append (
355
355
cwl .InputParameter (
356
356
id = "self" ,
@@ -652,7 +652,8 @@ def process_workflow_reqs_and_hints(
652
652
"""
653
653
# TODO: consolidate the generated etools/cltools into a single "_expression_workflow_reqs" step
654
654
# TODO: support resourceReq.* references to Workflow.inputs?
655
- # ^ By refactoring replace_expr_etool to allow multiple inputs, and connecting all workflow inputs to the generated step
655
+ # ^ By refactoring replace_expr_etool to allow multiple inputs,
656
+ # and connecting all workflow inputs to the generated step
656
657
modified = False
657
658
inputs = empty_inputs (workflow )
658
659
generated_res_reqs : List [Tuple [str , Union [int , str ]]] = []
@@ -837,7 +838,8 @@ def process_workflow_reqs_and_hints(
837
838
raise_type = WorkflowException ,
838
839
).makeError (
839
840
f"Entry { index } ,"
840
- + "Invalid CWL, if 'entry' is a string, then entryName must be specified."
841
+ + "Invalid CWL, if 'entry' "
842
+ "is a string, then entryName must be specified."
841
843
)
842
844
expr = (
843
845
'${return {"class": "File", "basename": "'
@@ -979,7 +981,8 @@ def process_level_reqs(
979
981
# - Replace the CWL Expression inplace with a CWL parameter reference
980
982
# - Don't create a new Requirement, nor delete the existing Requirement
981
983
# - the Process is passed to replace_expr_with_etool for later searching for JS expressionLibs
982
- # - in addition to adding the input to the step for the ETool/CTool result, add it to the Process.inputs as well
984
+ # - in addition to adding the input to the step for the ETool/CTool result,
985
+ # add it to the Process.inputs as well
983
986
if not process .requirements :
984
987
return False
985
988
modified = False
@@ -1122,7 +1125,7 @@ def process_level_reqs(
1122
1125
entryname = (
1123
1126
entry .entryname
1124
1127
if entryname_expr
1125
- else f'"{ entry .entryname } "'
1128
+ else f'"{ entry .entryname } "' # noqa: B907
1126
1129
)
1127
1130
new_expression = (
1128
1131
"${var result; var entryname = "
@@ -1914,15 +1917,15 @@ def workflow_step_to_InputParameters(
1914
1917
for p in param :
1915
1918
if not p .type :
1916
1919
raise WorkflowException (
1917
- f"Don't know how to get type id for ' { p } ' ."
1920
+ f"Don't know how to get type id for { p !r } ."
1918
1921
)
1919
1922
p .id = inp_id
1920
1923
p .type = clean_type_ids (p .type )
1921
1924
params .append (p )
1922
1925
else :
1923
1926
if not param .type :
1924
1927
raise WorkflowException (
1925
- f"Don't know how to get type id for ' { param } ' ."
1928
+ f"Don't know how to get type id for { param !r } ."
1926
1929
)
1927
1930
param .id = inp_id
1928
1931
param .type = clean_type_ids (param .type )
0 commit comments