topmark.pipeline.runner¶
Run the TopMark V2 header processing pipeline for a single file.
This module defines the HeaderProcessor protocol interface, a registry system for associating file extensions with processor implementations, and helper functions for processor lookup and registration. It enables extensible, comment-style-based header processing for different file types.
run ¶
Execute the pipeline sequentially.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
ctx
|
ProcessingContext
|
Mutable processing context. |
required |
steps
|
Sequence[Step[ProcessingContext]]
|
Ordered sequence of pipeline steps. Each step takes and returns a context. |
required |
prune_views
|
bool
|
Trim the views at the end of a run to reduce memory usage (default: |
True
|
keep_diff_view
|
bool
|
Whether to preserve the diff view. |
False
|
Returns:
| Type | Description |
|---|---|
ProcessingContext
|
The final processing context after all steps have run. |