8dd1cf326d
- 基于 VeighNa 4.4.0 的二次开发基础 - 建立项目目录结构(sanguo_trader/sanguo_research/sanguo_data/sanguo_common) - 配置开发工作流文档和 Git 模板 - 设置 GitHub Flow 分支策略 - 添加依赖管理文件 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
103 lines
2.5 KiB
TOML
103 lines
2.5 KiB
TOML
[project]
|
|
name = "sanguo-vnpy"
|
|
version = "0.1.0"
|
|
description = "Sanguo Quantitative Trading Platform based on VeighNa"
|
|
readme = "README.md"
|
|
license = {text = "MIT"}
|
|
authors = [
|
|
{name = "Sanguo Team", email = "team@sanguo.com"}
|
|
]
|
|
classifiers = [
|
|
"Development Status :: 3 - Alpha",
|
|
"License :: OSI Approved :: MIT License",
|
|
"Operating System :: Microsoft :: Windows",
|
|
"Operating System :: POSIX :: Linux",
|
|
"Operating System :: MacOS",
|
|
"Programming Language :: Python :: 3",
|
|
"Programming Language :: Python :: 3.10",
|
|
"Programming Language :: Python :: 3.11",
|
|
"Programming Language :: Python :: 3.12",
|
|
"Programming Language :: Python :: 3.13",
|
|
"Topic :: Office/Business :: Financial :: Investment",
|
|
]
|
|
requires-python = ">=3.10"
|
|
dependencies = [
|
|
"tzlocal>=5.3.1",
|
|
"PySide6==6.8.2.1",
|
|
"pyqtgraph>=0.13.7",
|
|
"qdarkstyle>=3.2.3",
|
|
"numpy>=2.2.3",
|
|
"pandas>=2.2.3",
|
|
"ta-lib>=0.6.4",
|
|
"deap>=1.4.2",
|
|
"pyzmq>=26.3.0",
|
|
"plotly>=6.0.0",
|
|
"tqdm>=4.67.1",
|
|
"loguru>=0.7.3",
|
|
"nbformat>=5.10.4",
|
|
"requests>=2.32.0",
|
|
"qrcode>=7.4.2",
|
|
]
|
|
|
|
[project.optional-dependencies]
|
|
alpha = [
|
|
"polars>=1.26.0",
|
|
"scipy>=1.15.2",
|
|
"alphalens-reloaded>=0.4.5",
|
|
"scikit-learn>=1.6.1",
|
|
"lightgbm>=4.6.0",
|
|
"torch>=2.6.0",
|
|
"pyarrow>=19.0.1",
|
|
]
|
|
dev = [
|
|
"pytest>=7.0.0",
|
|
"pytest-cov>=4.0.0",
|
|
"ruff>=0.1.0",
|
|
"mypy>=1.5.0",
|
|
]
|
|
all = [
|
|
"sanguo-vnpy[alpha,dev]",
|
|
]
|
|
|
|
[project.urls]
|
|
"Homepage" = "http://192.168.2.154:3000/sanguo/sanguo_vnpy_v2"
|
|
"Repository" = "http://192.168.2.154:3000/sanguo/sanguo_vnpy_v2"
|
|
"Documentation" = "http://192.168.2.154:3000/sanguo/sanguo_vnpy_v2/wiki"
|
|
"Bug Tracker" = "http://192.168.2.154:3000/sanguo/sanguo_vnpy_v2/issues"
|
|
|
|
[build-system]
|
|
requires = ["hatchling>=1.27.0"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[tool.hatch.build.targets.wheel]
|
|
packages = ["sanguo_trader", "sanguo_research", "sanguo_data", "sanguo_common"]
|
|
|
|
[tool.ruff]
|
|
target-version = "py310"
|
|
line-length = 100
|
|
|
|
[tool.ruff.lint]
|
|
select = [
|
|
"B", # flake8-bugbear
|
|
"E", # pycodestyle error
|
|
"F", # pyflakes
|
|
"UP", # pyupgrade
|
|
"W", # pycodestyle warning
|
|
"I", # isort
|
|
]
|
|
ignore = ["E501"]
|
|
|
|
[tool.mypy]
|
|
python_version = "3.10"
|
|
warn_return_any = true
|
|
warn_unused_configs = true
|
|
disallow_untyped_defs = true
|
|
strict_optional = true
|
|
|
|
[tool.pytest.ini_options]
|
|
testpaths = ["tests"]
|
|
python_files = ["test_*.py"]
|
|
python_classes = ["Test*"]
|
|
python_functions = ["test_*"]
|
|
addopts = "--cov=sanguo_trader --cov=sanguo_research --cov-report=html"
|