MCPcopy Create free account
hub / github.com/firebase/functions-samples / reformat_in_place

Function reformat_in_place

Python/pyfmt.py:28–33  ·  view source on GitHub ↗
(files: list[str])

Source from the content-addressed store, hash-verified

26
27
28def reformat_in_place(files: list[str]) -> None:
29 for file in files:
30 with open(file, "rt", encoding="utf-8") as f:
31 src = format(f.read())
32 with open(file, "wt", encoding="utf-8") as f:
33 f.write(src)
34
35
36def check_and_diff(files: list[str]) -> int:

Callers 1

pyfmt.pyFile · 0.85

Calls 1

formatFunction · 0.85

Tested by

no test coverage detected