Skip to content

Commit e0768f8

Browse files
committed
fix: flake8
Signed-off-by: zjgemi <liuxin_zijian@163.com>
1 parent 21389f8 commit e0768f8

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

src/dflow/plugins/dispatcher.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ def render(self, template):
522522
new_template.script += " new_task_dict['backward_files']"\
523523
".append('./%s_' + str(i))\n" % path
524524
new_template.script += " new_task_dict['backward_files']"\
525-
".append('log')\n" # work around no Bohrium result file
525+
".append('log')\n" # work around no Bohrium result file
526526
new_template.script += " with open('script' + str(i), 'w')"\
527527
" as f:\n"
528528
new_template.script += " f.write(new_script)\n"

src/dflow/step.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -587,8 +587,9 @@ def merge_output_artifact(art, parent, layer=0):
587587
self.with_param = argo_range(ngroups)
588588
else:
589589
for name in sliced_input_artifact:
590-
self.inputs.parameters["dflow_%s_sub_path" %
591-
name].value = "{{item.%s}}" % name
590+
self.inputs.parameters[
591+
"dflow_%s_sub_path" % name].value = \
592+
"{{item.%s}}" % name
592593
v = self.inputs.artifacts[name].source
593594
if isinstance(v, S3Artifact):
594595
self.prepare_step.set_artifacts({
@@ -597,7 +598,8 @@ def merge_output_artifact(art, parent, layer=0):
597598
v.sub_path("{{item.%s}}" % name)
598599
elif v is not None:
599600
self.prepare_step.set_artifacts({name: v})
600-
self.inputs.artifacts[name].sp = "{{item.%s}}" % name
601+
self.inputs.artifacts[name].sp = "{{item.%s}}" % \
602+
name
601603
if self.with_sequence is not None:
602604
for par in self.inputs.parameters.values():
603605
if hasattr(par, "value") and isinstance(

src/dflow/util_ops.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ def __init__(self, template, image, command, image_pull_policy, key,
7979
optional=True, sub_path=config["catalog_dir_name"])
8080
self.outputs.parameters["dflow_slices_path"] = \
8181
OutputParameter(
82-
value_from_path="%s/outputs/parameters/dflow_"\
83-
"slices_path" % self.tmp_root, type=dict)
82+
value_from_path="%s/outputs/parameters/dflow_"
83+
"slices_path" % self.tmp_root, type=dict)
8484

8585
if self.sum_var is not None:
8686
name = self.sum_var.name

0 commit comments

Comments
 (0)