for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
import subprocess
def run_check(command: str) -> tuple[bool, str]:
try:
return (
True,
subprocess.check_output(
command, stderr=subprocess.STDOUT, shell=True, text=True
),
)
except subprocess.CalledProcessError as e:
return (False, e.output)