Skip to content

Commit c98e24b

Browse files
committed
rename and comment
1 parent e74f4d6 commit c98e24b

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

utils/pipeline_preview.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
"""
2+
Pipeline preview renderer.
3+
4+
Provides utilities for rendering selected stages of a pipeline
5+
for debugging and inspection.
6+
"""
17
from __future__ import annotations
28

39
from dataclasses import dataclass
@@ -18,7 +24,7 @@ def print_section(title: str) -> None:
1824
print("=" * 60)
1925

2026

21-
def includes_stage(selected: StrEnum, target: StrEnum, all_stage: StrEnum) -> bool:
27+
def should_render_section(selected: StrEnum, target: StrEnum, all_stage: StrEnum) -> bool:
2228
return selected in (target, all_stage)
2329

2430

@@ -28,6 +34,6 @@ def render_sections(
2834
all_stage: StrEnum,
2935
) -> None:
3036
for section in sections:
31-
if includes_stage(selected, section.stage, all_stage):
37+
if should_render_section(selected, section.stage, all_stage):
3238
print_section(section.title)
3339
section.render()

0 commit comments

Comments
 (0)