MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / make_header

Function make_header

scripts/update_license_headers.py:79–84  ·  view source on GitHub ↗

Return the two-line SPDX header for a given comment prefix.

(comment: str)

Source from the content-addressed store, hash-verified

77
78
79def make_header(comment: str) -> str:
80 """Return the two-line SPDX header for a given comment prefix."""
81 return (
82 f"{comment} SPDX-FileCopyrightText: {COPYRIGHT_TEXT}\n"
83 f"{comment} SPDX-License-Identifier: {LICENSE_ID}\n"
84 )
85
86
87# ---------------------------------------------------------------------------

Callers 1

insert_headerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected