🔒 Security: - 修复 API Key 泄露,移除 platform_db.json 明文存储 - 限制 CORS 允许来源,不再全开放 - 添加路径校验防止目录穿越攻击 - Git 命令使用列表传参防止注入 - os.killpg 添加异常处理 🐛 Bug Fixes: - 生产环境禁用 Flask debug 模式 - 修复 SSE 连接泄漏(useTaskLogs + ReposView) - 修复 fetch 静默吞错误,添加 console.error 日志 - 补全 _run_ui_fix 函数签名 - 修复 .coveragerc source 配置 - _load_db 添加文件锁和 Queue maxsize - SSE log_queues 使用 WeakValueDictionary 🔧 Refactor: - BaseAPI → APIClient 统一命名 - 删除后端死代码和重复 import - 删除 business_backup 备份代码 - 删除 conftest_metrics 死代码 📝 Docs: - 新增 CHANGELOG.md 和 CHANGELIST.md - 更新 QUICKSTART.md 添加安全注意事项 - 更新 CONFIG.md 添加安全加固和性能优化
22 lines
385 B
INI
22 lines
385 B
INI
# Coverage configuration
|
|
# Run: pytest --cov --cov-report=html --cov-report=term
|
|
|
|
[run]
|
|
source = backend, agent, framework, plugins
|
|
omit =
|
|
*/__init__.py
|
|
tests/*
|
|
frontend/*
|
|
work/*
|
|
|
|
[report]
|
|
exclude_also =
|
|
def __repr__
|
|
if self\.debug:
|
|
if __name__ == .__main__.:
|
|
raise AssertionError
|
|
raise NotImplementedError
|
|
|
|
[html]
|
|
directory = reports/coverage_html
|