MCPcopy Index your code
hub / github.com/pre-commit/pre-commit / _is_header_line

Function _is_header_line

pre_commit/commands/migrate_config.py:21–22  ·  view source on GitHub ↗
(line: str)

Source from the content-addressed store, hash-verified

19
20
21def _is_header_line(line: str) -> bool:
22 return line.startswith(('#', '---')) or not line.strip()
23
24
25def _migrate_map(contents: str) -> str:

Callers 1

_migrate_mapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected