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
53
54def format_file(file: Path) -> None:
55 """Format a file in place."""
56 subprocess.run(
57 ["clang-format", "-i", str(file)],
58 check=True
59 )
60
61
62@click.command()

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected