MCPcopy Index your code
hub / github.com/PyO3/rust-numpy / format_

Function format_

x.py:108–119  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

106
107
108def format_(args):
109 if not can_run("black", "--version"):
110 sys.exit(
111 "Formatting requires the Black formatter (https://github.com/psf/black)"
112 )
113
114 run("cargo", "fmt")
115
116 for manifest in gen_examples("Cargo.toml"):
117 run("cargo", "fmt", "--manifest-path", manifest)
118
119 run("black", ".")
120
121
122def prune(args):

Callers 1

defaultFunction · 0.85

Calls 3

can_runFunction · 0.85
runFunction · 0.85
gen_examplesFunction · 0.85

Tested by

no test coverage detected