Skip to content

topmark.processors.builtins.pound

topmark / processors / builtins / pound

Header processor for pound-prefixed comment formats.

This processor supports files using #-style comments, such as Python, shell scripts, and Makefiles. It delegates header processing to the core pipeline dispatcher.

PoundHeaderProcessor

PoundHeaderProcessor()

Bases: LineCommentMixin, HeaderProcessor

Header processor for line-comment # files (uses LineCommentMixin).

This processor handles files that use # for comments, such as Python scripts, shell scripts, and Makefiles. It processes the header using the pipeline dispatcher.

Respects FileTypeHeaderPolicy for shebang and encoding line handling.

Source code in src/topmark/processors/builtins/pound.py
def __init__(self) -> None:
    # Rely on the class attribute for LineCommentMixin; just run base init.
    super().__init__()