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 @@
"""实例「系统设置」页从 .env 汇总风控说明三所共用)。"""
"""实例「系统设置」页:从 .env 汇总风控说明(三所共用)."""
from __future__ import annotations
import os
@@ -82,7 +82,7 @@ def build_instance_settings_view(
_row(
"单日开仓提醒",
f"{alert_threshold}",
"达次数推送企业微信不拦单",
"达次数推送企业微信,不拦单",
),
_row(
"单日开仓硬上限",
@@ -144,7 +144,7 @@ def build_instance_settings_view(
_row("期权模块", "已启用"),
_row(
"期权 API",
f"已配置{opt_key[-4:]}" if len(opt_key) >= 4 else "未配置",
f"已配置({opt_key[-4:]})" if len(opt_key) >= 4 else "未配置",
),
_row(
"子账户",