chore: drop unused imports and a dead constant (no behaviour change)

- backtest/diagnose_filters: unused BacktestConfig import
- pair_signals/__init__: unused PlatformConfig import
- scripts/shadow_scan: unused pandas import
- research burst_precursors / calendar_impact / duka_spread: unused sys / COST / struct
- test_all: MagicMock, StringIO, Colors and two function-local imports that
  nothing in the test bodies used
- telegram_bot: ViolentWatch is only a type hint -> imported under TYPE_CHECKING

compare_oanda_tiingo.py and oanda_td_divergence.py are left alone here because
the hygiene commit deletes them.

Suite: 464 passed, 0 failed (unchanged).

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0156YhogLytzj9P2iH1skGbL
This commit is contained in:
Harwinder Sekhon
2026-09-06 16:46:15 -04:00
parent c44813fd55
commit 45bd90d1b3
8 changed files with 10 additions and 14 deletions
-1
View File
@@ -45,7 +45,6 @@ from gpu_backtest import ( # noqa: E402
BAR_SECONDS,
GPUTechnicalEngine,
PAIR_ALIASES,
BacktestConfig,
IndicatorCache,
fetch_history,
precompute_indicators,
+1 -1
View File
@@ -9,7 +9,7 @@ within/outside the scheduled-data hours, and an out-of-sample logistic model
python backtest/research/burst_precursors.py PARQUET BAR_MINUTES [--k 3] [--start ... --end ...]
"""
import argparse, sys
import argparse
import numpy as np, pandas as pd
+1 -1
View File
@@ -7,7 +7,7 @@ import argparse, sys
from pathlib import Path
import numpy as np, pandas as pd
sys.path.insert(0, str(Path(__file__).resolve().parent))
from open_trade_bursts import wilder_atr, simulate, r_of, stats, K, COST
from open_trade_bursts import wilder_atr, simulate, r_of, stats, K
CAL = Path(__file__).resolve().parent.parent / "cache" / "calendar.parquet"
-1
View File
@@ -10,7 +10,6 @@ bi5 format: LZMA 'alone' stream of 20-byte big-endian records
XAUUSD prices scaled x1000. URL months are 0-indexed.
"""
import lzma
import struct
import sys
from concurrent.futures import ThreadPoolExecutor
from datetime import date, timedelta