-
-
Notifications
You must be signed in to change notification settings - Fork 57
Expand file tree
/
Copy pathpyproject.toml
More file actions
92 lines (82 loc) · 2.83 KB
/
pyproject.toml
File metadata and controls
92 lines (82 loc) · 2.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# Poetry configuration
[tool.poetry]
name = "simtradelab"
version = "2.10.2"
description = "Lightweight quantitative backtesting framework with PTrade API simulation | 轻量级量化回测框架"
authors = ["kay <kayou@duck.com>"]
license = "AGPL-3.0-or-later"
readme = "README.md"
packages = [{include = "simtradelab", from = "src"}]
homepage = "https://github.com/kay-ou/SimTradeLab"
repository = "https://github.com/kay-ou/SimTradeLab"
documentation = "https://github.com/kay-ou/SimTradeLab/tree/main/docs"
keywords = ["quantitative", "backtest", "trading", "strategy", "ptrade", "finance"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Financial and Insurance Industry",
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"Topic :: Office/Business :: Financial :: Investment",
"Topic :: Scientific/Engineering :: Information Analysis",
"License :: OSI Approved :: GNU Affero General Public License v3",
"License :: Other/Proprietary License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Operating System :: OS Independent",
]
[tool.poetry.dependencies]
python = "^3.9"
pandas = ">=1.5.0"
pyarrow = ">=10.0.0"
numpy = ">=1.20.0,<2.0"
cachetools = "^5.0.0"
joblib = "^1.0.0"
matplotlib = "^3.5.0"
tqdm = "^4.0.0"
pydantic = "^2.0.0"
ta-lib = {version = "*", optional = true}
optuna = {version = "^3.0.0", optional = true}
[tool.poetry.extras]
indicators = ["ta-lib"]
optimizer = ["optuna"]
all = ["ta-lib", "optuna"]
[tool.poetry.group.dev.dependencies]
pytest = "^8.0.0"
[tool.ruff]
target-version = "py310"
line-length = 120
src = ["src"]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"F", # pyflakes
"I", # isort
"UP", # pyupgrade
"B", # flake8-bugbear
"SIM", # flake8-simplify
"RUF", # ruff-specific
]
ignore = [
"E501", # line-too-long (formatter handles)
"B008", # function-call-in-default-argument (FastAPI Depends)
"UP007", # Use X | Y (keep Optional for py310 compat)
"UP045", # Use X | None (same reason as UP007)
"UP032", # Use f-string (ptrade platform does not support f-string)
"UP031", # Use f-string (same)
"RUF001", # Ambiguous unicode in string (Chinese content)
"RUF002", # Ambiguous unicode in docstring (Chinese content)
"RUF003", # Ambiguous unicode in comment (Chinese content)
]
[tool.ruff.lint.isort]
known-first-party = ["simtradelab"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.pytest.ini_options]