From 580e99281456dbaf6445d973ddb2fc5a642fe382 Mon Sep 17 00:00:00 2001 From: Alexander Whitestone Date: Tue, 21 Apr 2026 11:29:29 +0000 Subject: [PATCH] fix: move global declaration before first use (#211) --- scripts/perf_bottleneck_finder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/perf_bottleneck_finder.py b/scripts/perf_bottleneck_finder.py index 1e2c5b0..1fbcc3c 100644 --- a/scripts/perf_bottleneck_finder.py +++ b/scripts/perf_bottleneck_finder.py @@ -513,6 +513,7 @@ def format_markdown(report: PerfReport) -> str: # ── Main ─────────────────────────────────────────────────────────── def main(): + global SLOW_TEST_THRESHOLD_S parser = argparse.ArgumentParser(description="Performance Bottleneck Finder") parser.add_argument("--repo", default=".", help="Path to repository to analyze") parser.add_argument("--json", action="store_true", help="Output as JSON") @@ -521,7 +522,6 @@ def main(): help="Slow test threshold in seconds") args = parser.parse_args() - global SLOW_TEST_THRESHOLD_S SLOW_TEST_THRESHOLD_S = args.threshold if not os.path.isdir(args.repo):