@@ -350,7 +350,7 @@ def generate_etool_from_expr(
350350 elif self_type .type :
351351 new_type = clean_type_ids (self_type .type )
352352 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 } ." )
354354 inputs .append (
355355 cwl .InputParameter (
356356 id = "self" ,
@@ -652,7 +652,8 @@ def process_workflow_reqs_and_hints(
652652 """
653653 # TODO: consolidate the generated etools/cltools into a single "_expression_workflow_reqs" step
654654 # 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
656657 modified = False
657658 inputs = empty_inputs (workflow )
658659 generated_res_reqs : List [Tuple [str , Union [int , str ]]] = []
@@ -837,7 +838,8 @@ def process_workflow_reqs_and_hints(
837838 raise_type = WorkflowException ,
838839 ).makeError (
839840 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."
841843 )
842844 expr = (
843845 '${return {"class": "File", "basename": "'
@@ -979,7 +981,8 @@ def process_level_reqs(
979981 # - Replace the CWL Expression inplace with a CWL parameter reference
980982 # - Don't create a new Requirement, nor delete the existing Requirement
981983 # - 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
983986 if not process .requirements :
984987 return False
985988 modified = False
@@ -1122,7 +1125,7 @@ def process_level_reqs(
11221125 entryname = (
11231126 entry .entryname
11241127 if entryname_expr
1125- else f'"{ entry .entryname } "'
1128+ else f'"{ entry .entryname } "' # noqa: B907
11261129 )
11271130 new_expression = (
11281131 "${var result; var entryname = "
@@ -1914,15 +1917,15 @@ def workflow_step_to_InputParameters(
19141917 for p in param :
19151918 if not p .type :
19161919 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 } ."
19181921 )
19191922 p .id = inp_id
19201923 p .type = clean_type_ids (p .type )
19211924 params .append (p )
19221925 else :
19231926 if not param .type :
19241927 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 } ."
19261929 )
19271930 param .id = inp_id
19281931 param .type = clean_type_ids (param .type )
0 commit comments