diff --git a/python/lsst/pipe/base/pipeline_graph/doc_builder.py b/python/lsst/pipe/base/pipeline_graph/doc_builder.py index fa479440..c85a6263 100644 --- a/python/lsst/pipe/base/pipeline_graph/doc_builder.py +++ b/python/lsst/pipe/base/pipeline_graph/doc_builder.py @@ -433,8 +433,7 @@ def write_dot(self, task_defs: Sequence[TaskDef] | None = None) -> None: self.tasks[task_def.label].write_dot(task_def) def write_rst(self, pipeline_graph: PipelineGraph) -> None: - """Write the reStructuredText files for the pipeline and its tasks. - """ + """Write the reStructuredText files for the pipeline and its tasks.""" with self._mkdir_and_open(self.rst_path) as buffer: buffer.write( textwrap.dedent( @@ -455,9 +454,7 @@ def write_rst(self, pipeline_graph: PipelineGraph) -> None: ) ) for label in pipeline_graph.tasks: - buffer.write( - f" {label} <{self._relative_to_rst(self.tasks[label].rst_path)}>\n" - ) + buffer.write(f" {label} <{self._relative_to_rst(self.tasks[label].rst_path)}>\n") buffer.write("\n") buffer.write( textwrap.dedent( @@ -481,8 +478,7 @@ def write_rst(self, pipeline_graph: PipelineGraph) -> None: self.tasks[task_node.label].write_rst(self.name, task_node) def write_configs(self, pipeline_graph: PipelineGraph) -> None: - """Write the config file for all tasks. - """ + """Write the config file for all tasks.""" for task_node in pipeline_graph.tasks.values(): self.tasks[task_node.label].write_config(self.name, task_node)