MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / _is_banner_payload

Function _is_banner_payload

scripts/code-verify.py:929–934  ·  view source on GitHub ↗

True when a comment payload is a banner decorator: empty after the `//`, or punctuation-only (`---`, `===`, `***`). These are intentional section markers per CLAUDE.md and are stripped from prose runs.

(payload: str)

Source from the content-addressed store, hash-verified

927
928
929def _is_banner_payload(payload: str) -> bool:
930 """True when a comment payload is a banner decorator: empty after the
931 `//`, or punctuation-only (`---`, `===`, `***`). These are intentional
932 section markers per CLAUDE.md and are stripped from prose runs."""
933 s = payload.strip()
934 return s == "" or set(s) <= {"-", "=", "*"}
935
936
937def _is_banner_run(payloads: list[str]) -> bool:

Callers 1

_is_banner_runFunction · 0.85

Calls 1

setFunction · 0.50

Tested by

no test coverage detected