1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-27 11:07:44 +00:00

fix ruff warnings

This commit is contained in:
Sylvestre Ledru 2025-03-18 20:36:38 +01:00
parent 663a9202e5
commit b1c3175387
5 changed files with 12 additions and 9 deletions

View file

@ -75,8 +75,9 @@ collect_diff(2, "opt-level")
collect_diff(3, "lto")
def analyze(l):
return f"MIN: {float(min(l)):.3}, AVG: {float(sum(l)/len(l)):.3}, MAX: {float(max(l)):.3}"
def analyze(change):
return f"""MIN: {float(min(change)):.3},
AVG: {float(sum(change) / len(change)):.3}, MAX: {float(max(change)):.3}"""
print("Absolute changes")