Normalize fullwidth punctuation to ASCII across codebase.

Add scripts/normalize_ambiguous_unicode.py; fix corrupted patch_instance_theme_templates.py. Preserves curly quotes in string literals; removes Git homoglyph warnings on .env.example.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-08 23:42:26 +08:00
parent aaa72c7961
commit b733e551a0
392 changed files with 71522 additions and 71369 deletions
+3 -3
View File
@@ -1,4 +1,4 @@
"""行情区Top20 内 MACD 背离扫描档 A+ 4h/日线/周线共振"""
"""行情区:Top20 内 MACD 背离扫描(档 A)+ 4h/日线/周线共振."""
from __future__ import annotations
import json
@@ -91,7 +91,7 @@ def detect_latest_macd_divergence(
align_bars: int = SWING_ALIGN_BARS,
recency_bars: int = RECENCY_BARS,
) -> dict[str, Any]:
"""档 A最近一对摆动 MACD 顶/底背离与 chart.js detectDivergences 同类)。"""
"""档 A:最近一对摆动 MACD 顶/底背离(与 chart.js detectDivergences 同类)."""
if len(closes) < swing_lookback * 2 + 10:
return {"direction": None}
macd = build_macd_by_index(closes)
@@ -417,7 +417,7 @@ def scan_top_symbols(
rank_items: Sequence[Mapping[str, Any]],
fetch_bars: Callable[[str, str], Sequence[Mapping[str, Any]]],
) -> list[dict[str, Any]]:
"""对 Top N 币种扫描三周期背离fetch_bars(symbol, timeframe) -> OHLCV rows"""
"""对 Top N 币种扫描三周期背离.fetch_bars(symbol, timeframe) -> OHLCV rows."""
out: list[dict[str, Any]] = []
for row in rank_items:
symbol = str(row.get("symbol") or "").strip().upper()