mirror of
https://github.com/Z3Prover/z3
synced 2026-03-19 19:43:11 +00:00
run black and ruff on all skill scripts
This commit is contained in:
parent
9d674404c8
commit
621638abb9
7 changed files with 103 additions and 60 deletions
14
.github/skills/benchmark/scripts/benchmark.py
vendored
14
.github/skills/benchmark/scripts/benchmark.py
vendored
|
|
@ -42,13 +42,19 @@ def main():
|
|||
|
||||
for i in range(args.runs):
|
||||
run_id = db.start_run("benchmark", formula)
|
||||
result = run_z3(formula, z3_bin=args.z3, timeout=args.timeout,
|
||||
args=["-st"], debug=args.debug)
|
||||
result = run_z3(
|
||||
formula,
|
||||
z3_bin=args.z3,
|
||||
timeout=args.timeout,
|
||||
args=["-st"],
|
||||
debug=args.debug,
|
||||
)
|
||||
|
||||
stats = parse_stats(result["stdout"])
|
||||
db.log_formula(run_id, formula, result["result"], stats=stats)
|
||||
db.finish_run(run_id, result["result"], result["duration_ms"],
|
||||
result["exit_code"])
|
||||
db.finish_run(
|
||||
run_id, result["result"], result["duration_ms"], result["exit_code"]
|
||||
)
|
||||
timings.append(result["duration_ms"])
|
||||
|
||||
if args.runs == 1:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue