- 新增 report_db 包: MySQL 连接/建表/幂等写入 (news_report/news_event, myquant 库) - 新增 report_import 包: 历史 178 份日报 HTML 解析入库, 表头驱动列映射 - reporter.py 完全切换: generate_report 结构化入库, 不再生成/上传 HTML - CLI: 新增 report-import 子命令 - 依赖: uv add pymysql; 配置: NEWS_DB_* / REPORT_HISTORY_DIR - 文档: docs/report_db_design.md(实现逻辑), docs/db_schema.md(表结构供 API/前端) - 测试: 24 个单测通过 (parser/builder/models/importer)
63 lines
660 B
Plaintext
63 lines
660 B
Plaintext
# Python
|
|
__pycache__/
|
|
*.py[cod]
|
|
*$py.class
|
|
*.so
|
|
.Python
|
|
.venv/
|
|
venv/
|
|
env/
|
|
build/
|
|
dist/
|
|
*.egg-info/
|
|
*.egg
|
|
.eggs/
|
|
|
|
# uv
|
|
# uv.lock 应保留以锁定生产环境依赖版本(本项目为应用而非库)
|
|
|
|
# 测试 / 覆盖率
|
|
.pytest_cache/
|
|
.coverage
|
|
htmlcov/
|
|
.tox/
|
|
.mypy_cache/
|
|
.ruff_cache/
|
|
|
|
# IDE
|
|
.vscode/
|
|
.idea/
|
|
*.swp
|
|
*.swo
|
|
|
|
# OS
|
|
.DS_Store
|
|
Thumbs.db
|
|
|
|
# 项目敏感配置
|
|
.env
|
|
.env.local
|
|
.env.*.local
|
|
*.key
|
|
*.pem
|
|
|
|
# 运行产物
|
|
logs/*.log
|
|
logs/*.log.*
|
|
data/raw/
|
|
data/processed/
|
|
data/cache/
|
|
*.sqlite
|
|
*.sqlite3
|
|
*.db
|
|
|
|
# Docker 卷
|
|
qdrant_storage/
|
|
|
|
# 调试输出
|
|
debug/
|
|
tmp/
|
|
|
|
# M10: 历史日报源文件副本(可从 doorcome 重新拉取)
|
|
data/reports_history/
|