chore: lint and type the remaining tools

This commit is contained in:
Abdessamad Derraz committed 2026-11-17 08:25:26 +01:00
1 parent 54521380dc
commit fe243ce8a8
11 files changed
+27 -31

No files matched your search

+3 -3
View File
@@ -82,9 +82,9 @@ def shown(step: Step) -> str:
def execute(step: Step) -> int:
env = {**os.environ, **step.env}
if not step.then:
return subprocess.run(argv(step.command), cwd=ROOT, env=env).returncode
first = subprocess.run(argv(step.command), cwd=ROOT, env=env, stdout=subprocess.PIPE)
return subprocess.run(argv(step.then), cwd=ROOT, env=env, input=first.stdout).returncode
return subprocess.run(argv(step.command), cwd=ROOT, env=env, check=False).returncode
first = subprocess.run(argv(step.command), cwd=ROOT, env=env, stdout=subprocess.PIPE, check=False)
return subprocess.run(argv(step.then), cwd=ROOT, env=env, input=first.stdout, check=False).returncode
def run(steps: tuple[Step, ...] = STEPS) -> int: