MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / run_python_step_quiet

Function run_python_step_quiet

scripts/sanitize-commit.py:140–146  ·  view source on GitHub ↗
(label: str, script: Path, *args: str)

Source from the content-addressed store, hash-verified

138
139
140def run_python_step_quiet(label: str, script: Path, *args: str) -> None:
141 if not script.is_file():
142 return
143 print(f"{label}...")
144 result = run([sys.executable, str(script), *args], stdout=subprocess.DEVNULL)
145 if result.returncode != 0:
146 print(f"{script.name} found issues")
147
148
149def main() -> int:

Callers 1

mainFunction · 0.85

Calls 1

runFunction · 0.85

Tested by

no test coverage detected