MCPcopy Index your code
hub / github.com/plotly/plotly.py / reformat_code

Function reformat_code

codegen/__init__.py:105–108  ·  view source on GitHub ↗

Reformat Python code using settings in pyproject.toml.

(outdir)

Source from the content-addressed store, hash-verified

103
104
105def reformat_code(outdir):
106 """Reformat Python code using settings in pyproject.toml."""
107
108 subprocess.call(["ruff", "format", *make_paths(outdir)])
109
110
111def perform_codegen(outdir, noformat=False):

Callers 2

mainFunction · 0.90
perform_codegenFunction · 0.85

Calls 1

make_pathsFunction · 0.85

Tested by

no test coverage detected