feat(market-data): 迁移 Tushare 同步到 PostgreSQL

This commit is contained in:
yuxuanhui
2026-08-05 17:57:32 +08:00
parent e69bcbe821
commit d7d5ed8979
34 changed files with 3230 additions and 3 deletions
+9 -1
View File
@@ -5,8 +5,12 @@ description = "FastAPI backend and quantitative processing foundation for Zhixin
readme = "README.md"
requires-python = ">=3.12,<3.13"
dependencies = [
"alembic>=1.18.0",
"fastapi>=0.141.1",
"psycopg[binary]>=3.3.2",
"pydantic-settings>=2.14.2",
"sqlalchemy>=2.0.46",
"tushare>=1.4.24",
"uvicorn[standard]>=0.52.1",
]
@@ -26,13 +30,18 @@ build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/zhixing_server"]
[project.scripts]
market-data-sync = "zhixing_server.modules.market_data.presentation.cli:main"
[tool.pytest.ini_options]
addopts = "-ra --strict-config --strict-markers"
pythonpath = ["src"]
testpaths = ["tests"]
markers = ["integration: requires a PostgreSQL test database"]
[tool.pyright]
include = ["src", "tests"]
extraPaths = ["src"]
pythonVersion = "3.12"
typeCheckingMode = "strict"
venvPath = "."
@@ -47,4 +56,3 @@ select = ["B", "E", "F", "I", "SIM", "UP"]
[tool.ruff.format]
quote-style = "double"