Merge remote-tracking branch 'origin/qyqy_develop' into nl-merge-colleague
This commit is contained in:
@@ -15,6 +15,7 @@ ROOT = Path(__file__).resolve().parents[1]
|
||||
docs = ROOT / "docs"
|
||||
canonical = docs / "05-接口文档.md"
|
||||
deprecated = docs / "99-已废弃-公共Agent平台接口规范.md"
|
||||
legacy_deprecated = docs / "05-公共Agent平台接口规范.md"
|
||||
|
||||
if not canonical.exists():
|
||||
raise SystemExit("缺少唯一权威接口文档:docs/05-接口文档.md")
|
||||
@@ -23,9 +24,15 @@ if deprecated.exists():
|
||||
text = deprecated.read_text(encoding="utf-8")
|
||||
if not any(marker in text for marker in ("历史稿", "已废弃", "废弃声明")):
|
||||
raise SystemExit("废弃接口文档没有明确历史标记")
|
||||
if legacy_deprecated.exists():
|
||||
text = legacy_deprecated.read_text(encoding="utf-8")
|
||||
if not any(marker in text for marker in ("历史稿", "已废弃", "废弃声明")):
|
||||
raise SystemExit("历史接口文档没有明确废弃标记")
|
||||
|
||||
by_number: dict[str, list[str]] = defaultdict(list)
|
||||
for path in sorted(docs.glob("*.md")):
|
||||
if path == legacy_deprecated:
|
||||
continue
|
||||
by_number[path.name.split("-", 1)[0]].append(path.name)
|
||||
|
||||
collisions = {number: names for number, names in by_number.items() if len(names) > 1}
|
||||
|
||||
@@ -38,6 +38,8 @@ from pathlib import Path
|
||||
from types import ModuleType
|
||||
|
||||
PROJECT_ROOT = Path(__file__).resolve().parents[1]
|
||||
if str(PROJECT_ROOT) not in sys.path:
|
||||
sys.path.insert(0, str(PROJECT_ROOT))
|
||||
|
||||
#: 参与校验的 grant 脚本(都只做「按 code 判重」的幂等补齐)。
|
||||
GRANT_SCRIPTS: tuple[tuple[str, str, str], ...] = (
|
||||
|
||||
@@ -263,7 +263,7 @@ def build_task_xml(*, project_dir: Path, python_exe: Path, run_as: str) -> str:
|
||||
return f"""<?xml version="1.0" encoding="UTF-16"?>
|
||||
<Task version="1.4" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
|
||||
<RegistrationInfo>
|
||||
<Description>奶龙基金场外申购赎回邮件 Worker 自动启动任务</Description>
|
||||
<Description>南方基金场外申购赎回邮件 Worker 自动启动任务</Description>
|
||||
</RegistrationInfo>
|
||||
<Triggers>
|
||||
<{trigger}>
|
||||
|
||||
Reference in New Issue
Block a user