MCPcopy Create free account
hub / github.com/ClickHouse/ai-sdk-cpp / format_file

Function format_file

scripts/format.py:54–59  ·  view source on GitHub ↗

Format a file in place.

(file: Path)

Source from the content-addressed store, hash-verified

52 stderr=subprocess.DEVNULL
53 )
54 return result.returncode == 0
55
56
57def format_file(file: Path) -> None:
58 """Format a file in place."""
59 subprocess.run(
60 ["clang-format", "-i", str(file)],
61 check=True
62 )

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected