@@ -353,21 +353,27 @@ def generate_etool_from_expr(
353353 cwl .WorkflowInputParameter (
354354 id = "self" ,
355355 label = self_type .label if not isinstance (self_type , list ) else None ,
356- secondaryFiles = self_type .secondaryFiles
357- if not isinstance (self_type , list )
358- else None ,
359- streamable = self_type .streamable
360- if not isinstance (self_type , list )
361- else None ,
356+ secondaryFiles = (
357+ self_type .secondaryFiles
358+ if not isinstance (self_type , list )
359+ else None
360+ ),
361+ streamable = (
362+ self_type .streamable if not isinstance (self_type , list ) else None
363+ ),
362364 doc = self_type .doc if not isinstance (self_type , list ) else None ,
363365 format = self_type .format if not isinstance (self_type , list ) else None ,
364366 type_ = new_type ,
365- extension_fields = self_type .extension_fields
366- if not isinstance (self_type , list )
367- else None ,
368- loadingOptions = self_type .loadingOptions
369- if not isinstance (self_type , list )
370- else None ,
367+ extension_fields = (
368+ self_type .extension_fields
369+ if not isinstance (self_type , list )
370+ else None
371+ ),
372+ loadingOptions = (
373+ self_type .loadingOptions
374+ if not isinstance (self_type , list )
375+ else None
376+ ),
371377 )
372378 )
373379 outputs = yaml .comments .CommentedSeq ()
@@ -818,10 +824,10 @@ def process_workflow_reqs_and_hints(
818824 None ,
819825 replace_etool ,
820826 )
821- iwdr .listing [
822- index
823- ] = "$(inputs._iwdr_listing_{}" . format (
824- index
827+ iwdr .listing [index ] = (
828+ "$(inputs._iwdr_listing_{}" . format (
829+ index
830+ )
825831 )
826832 generated_iwdr_reqs .append (
827833 (etool_id , index )
@@ -859,9 +865,9 @@ def process_workflow_reqs_and_hints(
859865 None ,
860866 replace_etool ,
861867 )
862- iwdr .listing [
863- index
864- ] = f"$(inputs._iwdr_listing_ { index } "
868+ iwdr .listing [index ] = (
869+ f"$(inputs._iwdr_listing_ { index } "
870+ )
865871 generated_iwdr_reqs .append ((etool_id , index ))
866872
867873 elif entry .entryname :
@@ -885,9 +891,9 @@ def process_workflow_reqs_and_hints(
885891 None ,
886892 replace_etool ,
887893 )
888- iwdr .listing [
889- index
890- ] = f"$(inputs._iwdr_listing_ { index } "
894+ iwdr .listing [index ] = (
895+ f"$(inputs._iwdr_listing_ { index } "
896+ )
891897 generated_iwdr_reqs .append ((etool_id , index ))
892898 if generated_iwdr_reqs :
893899 prop_reqs += (cwl .InitialWorkDirRequirement ,)
@@ -1413,9 +1419,9 @@ def traverse_CommandLineTool(
14131419 inp .linkMerge = None
14141420 if replace_etool :
14151421 processes = [parent ]
1416- final_etool : Union [
1417- cwl . CommandLineTool , cwl . ExpressionTool
1418- ] = etool_to_cltool ( etool , find_expressionLib ( processes ) )
1422+ final_etool : Union [cwl . CommandLineTool , cwl . ExpressionTool ] = (
1423+ etool_to_cltool ( etool , find_expressionLib ( processes ))
1424+ )
14191425 else :
14201426 final_etool = etool
14211427 etool_step = cwl .WorkflowStep (
0 commit comments