MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / run_black

Method run_black

lib/sqlalchemy/util/tool_support.py:73–80  ·  view source on GitHub ↗
(self, tempfile: str)

Source from the content-addressed store, hash-verified

71 )
72
73 def run_black(self, tempfile: str) -> None:
74 self._run_console_script(
75 str(tempfile),
76 {
77 "entrypoint": "black",
78 "options": f"--config {self.pyproject_toml_path}",
79 },
80 )
81
82 def _run_console_script(self, path: str, options: Dict[str, Any]) -> None:
83 """Run a Python console application from within the process.

Callers 4

mainFunction · 0.80
run_moduleFunction · 0.80
run_operationFunction · 0.80
run_moduleFunction · 0.80

Calls 1

_run_console_scriptMethod · 0.95

Tested by 1

run_operationFunction · 0.64