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)
| 316 | |
| 317 | |
| 318 | def _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 | |
| 338 | def _pyright_errors(report: dict) -> dict[tuple[str, int, int, str], str]: |
no outgoing calls
no test coverage detected