mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-23 10:07:48 -06:00
chore: lint and type the remaining tools
This commit is contained in:
1 parent
54521380dc
commit
fe243ce8a8
11 files changed
+27
-31
No files matched your search
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user