preflight
preflight
¶
Rendering surface for PreflightReport.
The preflight package produces structured values; this module turns
them into human- (and, eventually, agent-) readable output. Callers
should use render_preflight_report
and select the output mode via RenderMode.
Classes:
| Name | Description |
|---|---|
PreflightRenderContext |
Display-only context threaded into a preflight-report render call. |
Functions:
| Name | Description |
|---|---|
render_preflight_report |
Render |
PreflightRenderContext(config_path=None, data_source=None, artifact_dir=None, log_file=None, run_info=None)
dataclass
¶
Display-only context threaded into a preflight-report render call.
None of these fields are part of PreflightReport itself --
they are caller-supplied extras (usually from the CLI) that shape
what auxiliary sections the renderer draws.
render_preflight_report(report, *, registry, context=None, mode=RenderMode.RICH, console=None)
¶
Render report to the given output mode.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
report
|
PreflightReport
|
The structured preflight report to render. |
required |
registry
|
PreflightRegistry
|
The registry used to produce |
required |
context
|
PreflightRenderContext | None
|
Optional display-only context (paths, run info) that tells the renderer which auxiliary sections to emit. |
None
|
mode
|
RenderMode
|
Output format. Currently only |
RICH
|
console
|
Console | None
|
Only consulted for Rich output. Defaults to a new
|
None
|
Raises:
| Type | Description |
|---|---|
NotImplementedError
|
If |