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

Function is_dockerfile

scripts/update_license_headers.py:160–162  ·  view source on GitHub ↗

Return True for Dockerfile variants (matched by name, not extension).

(path: Path)

Source from the content-addressed store, hash-verified

158
159
160def is_dockerfile(path: Path) -> bool:
161 """Return True for Dockerfile variants (matched by name, not extension)."""
162 return path.name == "Dockerfile" or path.name.startswith("Dockerfile.")
163
164
165def get_comment_style(path: Path) -> str | None:

Callers 2

get_comment_styleFunction · 0.85
find_insertion_pointFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected