Skip to content

Commit

Permalink
Run black on doc builder
Browse files Browse the repository at this point in the history
  • Loading branch information
timj committed Aug 10, 2024
1 parent d1473c6 commit c3d7525
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions python/lsst/pipe/base/pipeline_graph/doc_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,8 +433,7 @@ def write_dot(self, task_defs: Sequence[TaskDef] | None = None) -> None:
self.tasks[task_def.label].write_dot(task_def)

Check warning on line 433 in python/lsst/pipe/base/pipeline_graph/doc_builder.py

View check run for this annotation

Codecov / codecov/patch

python/lsst/pipe/base/pipeline_graph/doc_builder.py#L433

Added line #L433 was not covered by tests

def write_rst(self, pipeline_graph: PipelineGraph) -> None:

Check warning on line 435 in python/lsst/pipe/base/pipeline_graph/doc_builder.py

View check run for this annotation

Codecov / codecov/patch

python/lsst/pipe/base/pipeline_graph/doc_builder.py#L435

Added line #L435 was not covered by tests
"""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(

Check warning on line 438 in python/lsst/pipe/base/pipeline_graph/doc_builder.py

View check run for this annotation

Codecov / codecov/patch

python/lsst/pipe/base/pipeline_graph/doc_builder.py#L438

Added line #L438 was not covered by tests
textwrap.dedent(
Expand All @@ -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(

Check warning on line 459 in python/lsst/pipe/base/pipeline_graph/doc_builder.py

View check run for this annotation

Codecov / codecov/patch

python/lsst/pipe/base/pipeline_graph/doc_builder.py#L457-L459

Added lines #L457 - L459 were not covered by tests
textwrap.dedent(
Expand All @@ -481,8 +478,7 @@ def write_rst(self, pipeline_graph: PipelineGraph) -> None:
self.tasks[task_node.label].write_rst(self.name, task_node)

Check warning on line 478 in python/lsst/pipe/base/pipeline_graph/doc_builder.py

View check run for this annotation

Codecov / codecov/patch

python/lsst/pipe/base/pipeline_graph/doc_builder.py#L478

Added line #L478 was not covered by tests

def write_configs(self, pipeline_graph: PipelineGraph) -> None:

Check warning on line 480 in python/lsst/pipe/base/pipeline_graph/doc_builder.py

View check run for this annotation

Codecov / codecov/patch

python/lsst/pipe/base/pipeline_graph/doc_builder.py#L480

Added line #L480 was not covered by tests
"""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)

Check warning on line 483 in python/lsst/pipe/base/pipeline_graph/doc_builder.py

View check run for this annotation

Codecov / codecov/patch

python/lsst/pipe/base/pipeline_graph/doc_builder.py#L483

Added line #L483 was not covered by tests

Expand Down

0 comments on commit c3d7525

Please sign in to comment.