SHA256
P0: - 清理 src/fetchers/sector.py 第 225 行起的旧版残留代码 - 修复 src/fetchers/market_daily.py 中 fetch_history -> _fetch_history 笔误 - 在 src/main.py 挂载 --market-daily 子命令 P1: - 修正 src/db.py docstring(market_breadth -> market_daily 等) - requirements.txt 补 baostock;pyproject.toml 同步 + 新增 [dev] extras - README 增加 config.yaml 安全提示,将 git 历史清理升级为高风险 P0 由用户决策 P2: - 引入 src/log.py 统一 logging(控制台 + logs/ashare.log 按日滚动 7 天) - 建立 tests/ 框架,4 个测试文件 / 19 个 pytest 用例全部通过 - pyproject.toml 新增 [tool.pytest.ini_options] - config.example.yaml 补全 workers 字段与多源说明 - README 更新功能概览/参数说明/表结构/项目结构/设计说明全章节 - TODO.md 全面重写,按 P0/P2 整理剩余条目并附变更日志 - .gitignore 新增 .claude/
28 lines
465 B
TOML
28 lines
465 B
TOML
[project]
|
|
name = "ashare-data"
|
|
version = "0.1.0"
|
|
description = "A股数据抓取,保存到MySQL数据库"
|
|
requires-python = ">=3.10"
|
|
dependencies = [
|
|
"baostock",
|
|
"akshare",
|
|
"pymysql",
|
|
"sqlalchemy>=2.0",
|
|
"pyyaml",
|
|
"pandas",
|
|
"requests",
|
|
]
|
|
|
|
[project.optional-dependencies]
|
|
dev = [
|
|
"pytest>=7",
|
|
]
|
|
|
|
[project.scripts]
|
|
ashare = "src.main:main"
|
|
|
|
[tool.pytest.ini_options]
|
|
testpaths = ["tests"]
|
|
python_files = ["test_*.py"]
|
|
addopts = "-ra"
|