Skip to content

Commit 1df15d5

Browse files
committed
style: format with black
1 parent e197770 commit 1df15d5

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/scripts/pytest_benchstat.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def format_cell(val, std, rounds):
120120
if rounds < 2 or std == 0:
121121
std_str = "± ∞"
122122
else:
123-
123+
124124
pct = (std / val) * 100
125125
std_str = f"± {pct:.0f}%"
126126

@@ -141,19 +141,18 @@ def format_cell(val, std, rounds):
141141
delta_str = ""
142142
if base and pr:
143143
# Simple check: do intervals overlap?
144-
144+
145145
n = min(base_rounds, pr_rounds)
146146

147147
# Mock p-value logic for display
148148
# If n < 4, benchstat says it can't detect difference usually?
149149
p_val = 1.000 # Placeholder
150150

151-
152151
if n < 4:
153152
delta_str = f"~ (p={p_val:.3f} n={n}) ²"
154153
need_insignificant_note = True
155154
else:
156-
155+
157156
delta_str = f"~ (p=? n={n})"
158157

159158
display_name = normalize_name(name)
@@ -185,6 +184,5 @@ def format_cell(val, std, rounds):
185184
print("² need >= 4 samples to detect a difference at alpha level 0.05")
186185

187186

188-
189187
if __name__ == "__main__":
190188
main()

0 commit comments

Comments
 (0)