MCPcopy
hub / github.com/reflex-dev/reflex / _run

Function _run

scripts/check_min_deps.py:318–335  ·  view source on GitHub ↗

Run a subprocess capturing combined output as text. Args: cmd: The command and arguments to run. kwargs: Extra keyword arguments forwarded to ``subprocess.run``. Returns: The completed process.

(cmd: list[str], **kwargs)

Source from the content-addressed store, hash-verified

316
317
318def _run(cmd: list[str], **kwargs) -> subprocess.CompletedProcess[str]:
319 """Run a subprocess capturing combined output as text.
320
321 Args:
322 cmd: The command and arguments to run.
323 kwargs: Extra keyword arguments forwarded to ``subprocess.run``.
324
325 Returns:
326 The completed process.
327 """
328 return subprocess.run(
329 cmd,
330 stdout=subprocess.PIPE,
331 stderr=subprocess.STDOUT,
332 text=True,
333 check=False,
334 **kwargs,
335 )
336
337
338def _pyright_errors(report: dict) -> dict[tuple[str, int, int, str], str]:

Callers 1

_resolve_and_checkFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected