mirror of
https://ghfast.top/https://github.com/aeroxw/tick-stock-panel.git
synced 2026-09-12 15:34:16 +08:00
- 设置页「自定义信号」升级为「信号库」:内置信号(只读) + 自定义信号分 Tab 展示 - 内置信号补充类型/分类/说明元数据 - 自定义信号配置改为通用弹窗组件 CustomSignalDialog - 抽出 SignalTriggerActions:新增信号 / 去信号库按钮 + 保存后自动加入触发器 - 回测高级设置、策略卡片配置弹窗均复用上述组件,去除重复逻辑 - 自定义信号删除改为二次确认(闪烁提示,3 秒自动复位) - 版本号 0.1.30 -> 0.1.31
66 lines
1.6 KiB
TOML
66 lines
1.6 KiB
TOML
[project]
|
|
name = "tickflow-stock-panel-backend"
|
|
version = "0.1.31"
|
|
description = "A 股选股 + 监控 + 回测面板 — TickFlow 适配"
|
|
readme = "../README.md"
|
|
requires-python = ">=3.11"
|
|
license = { text = "MIT" }
|
|
dependencies = [
|
|
# Web
|
|
"fastapi>=0.115",
|
|
"uvicorn[standard]>=0.30",
|
|
"pydantic>=2.7",
|
|
"pydantic-settings>=2.4",
|
|
"python-multipart>=0.0.6",
|
|
"sse-starlette>=2.0",
|
|
# Data
|
|
"polars>=1.0",
|
|
"duckdb>=1.0",
|
|
"pyarrow>=16.0",
|
|
"pandas>=2.2", # 仅在 BacktestService 边界使用,见 §7.4 / ADR-19
|
|
"fastexcel>=0.10", # Polars 读取 xlsx/xls
|
|
# TickFlow 官方 SDK
|
|
"tickflow[all]>=0.1.23",
|
|
# Scheduling
|
|
"apscheduler>=3.10",
|
|
# Config
|
|
"pyyaml>=6.0",
|
|
"python-dotenv>=1.0",
|
|
# AI(可选,但默认装上)
|
|
"openai>=1.40", # OpenAI 兼容适配器复用 openai SDK
|
|
"httpx>=0.27",
|
|
]
|
|
|
|
[project.optional-dependencies]
|
|
# 回测依赖 vectorbt → numba → llvmlite,体积大且 macOS/Intel 上无预构建 wheel 时
|
|
# 需要 brew install cmake 现场编译。挪到可选 extras,主依赖瘦身。
|
|
# 启用:`uv sync --extra backtest`
|
|
backtest = [
|
|
"vectorbt>=0.26",
|
|
]
|
|
|
|
dev = [
|
|
"pytest>=8.0",
|
|
"pytest-asyncio>=0.23",
|
|
"ruff>=0.5",
|
|
"mypy>=1.10",
|
|
]
|
|
|
|
[build-system]
|
|
requires = ["hatchling"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[tool.hatch.build.targets.wheel]
|
|
packages = ["app"]
|
|
|
|
[tool.ruff]
|
|
line-length = 100
|
|
target-version = "py311"
|
|
|
|
[tool.ruff.lint]
|
|
select = ["E", "F", "I", "N", "UP", "B", "SIM", "RUF"]
|
|
ignore = ["E501"] # 长行交给 fmt
|
|
|
|
[tool.pytest.ini_options]
|
|
asyncio_mode = "auto"
|