update pyptoject and revert suppress KeyboardInterrupt (#376)

* build: update pyptoject

* revert: suppress KeyboardInterrupt

* fix: imports
This commit is contained in:
Plamen Ivanov
2023-06-25 17:39:40 +03:00
committed by GitHub
parent ec5dfecba0
commit 196361dfcd
2 changed files with 15 additions and 3 deletions

View File

@@ -1,9 +1,9 @@
# list all folders in benchmark folder
# for each folder, run the benchmark
import contextlib
import os
import subprocess
import sys
from itertools import islice
from pathlib import Path
@@ -60,7 +60,7 @@ def main(
print(f.read())
print()
with contextlib.suppress(KeyboardInterrupt):
try:
subprocess.run(
[
"python",
@@ -71,6 +71,8 @@ def main(
"evaluate",
],
)
except KeyboardInterrupt:
sys.exit(1)
if __name__ == "__main__":