From 3b4d7399bf20d129b6c4d0238dd060bb5127a277 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Tue, 1 Sep 2026 18:14:04 +0800 Subject: [PATCH] chore(architecture): lower Ruff diagnostic baseline --- docs/architecture/optimization-checklist.md | 2 +- tests/fixtures/architecture/ruff-baseline.json | 9 --------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/docs/architecture/optimization-checklist.md b/docs/architecture/optimization-checklist.md index b9332a04c..fcf5f3358 100644 --- a/docs/architecture/optimization-checklist.md +++ b/docs/architecture/optimization-checklist.md @@ -103,7 +103,7 @@ ARCH-201 至 ARCH-204 均达到实现、验证、提交、推送和远端门禁 | Python 源码量 | 305,884 行 | 排除 `app/plugins/**`;61 个文件超过 1,000 行,11 个超过 2,000 行 | | 长方法 | 290 个超过 80 行 | AST 统计排除 `app/plugins/**`;65 个超过 150 行,21 个超过 250 行 | | 全量 mypy 历史债务 | 9,588 / 517 文件 | Agent API 重构后的现状基线;canonical Facade 与 endpoint 类型边界已补齐,低水位只允许继续下降 | -| Ruff 历史诊断 | 567 | 低水位门禁通过,但规则集只覆盖 `E4/E7/E9/F/I` | +| Ruff 历史诊断 | 564 | 低水位门禁通过,但规则集只覆盖 `E4/E7/E9/F/I` | | 覆盖率固定基线 | Application 80.00%,Domain 80.00% | Chain、Runtime、Agent、Adapter、Startup 未进入包级覆盖率门禁 | ### 3.3 热点文件 diff --git a/tests/fixtures/architecture/ruff-baseline.json b/tests/fixtures/architecture/ruff-baseline.json index def2b0a06..0cf1f2776 100644 --- a/tests/fixtures/architecture/ruff-baseline.json +++ b/tests/fixtures/architecture/ruff-baseline.json @@ -18,18 +18,12 @@ "app/adapters/web/plugin/routes.py": { "I001": 1 }, - "app/agent/llm/capability.py": { - "I001": 1 - }, "app/agent/llm/tools.py": { "I001": 1 }, "app/agent/loader.py": { "I001": 1 }, - "app/agent/mcp.py": { - "I001": 1 - }, "app/agent/middleware/memory.py": { "I001": 1 }, @@ -48,9 +42,6 @@ "app/agent/tools/impl/browse_webpage.py": { "I001": 1 }, - "app/agent/tools/impl/execute_command.py": { - "I001": 1 - }, "app/agent/tools/impl/recognize_captcha.py": { "I001": 1 },