-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
83 lines (74 loc) · 2.09 KB
/
Copy pathpyproject.toml
File metadata and controls
83 lines (74 loc) · 2.09 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
[build-system]
requires = ["hatchling>=1.21"]
build-backend = "hatchling.build"
[project]
name = "gpu-mt5-bt"
version = "0.1.0"
description = "Distributed GPU-accelerated MetaTrader 5 strategy backtester and parameter optimizer"
readme = "README.md"
requires-python = ">=3.11"
license = { text = "MIT" }
authors = [{ name = "gpu-mt5-bt contributors" }]
keywords = ["metatrader", "mt5", "backtesting", "gpu", "cuda", "ray", "trading", "optimization"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Financial and Insurance Industry",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Office/Business :: Financial :: Investment",
]
dependencies = [
"numpy>=1.26",
"polars>=0.20",
"pyarrow>=14",
"pydantic>=2.5",
"pyyaml>=6.0",
"typer>=0.9",
"rich>=13.7",
"jinja2>=3.1",
"plotly>=5.18",
"numba>=0.59",
"ray[default]>=2.9",
]
[project.optional-dependencies]
mt5 = ["MetaTrader5>=5.0.45"]
nvml = ["pynvml>=11.5"]
dev = [
"pytest>=7.4",
"pytest-cov>=4.1",
"pytest-mock>=3.12",
"beautifulsoup4>=4.12",
"lxml>=5.0",
]
[project.scripts]
gpu-mt5-bt = "gpu_mt5_bt.cli:app"
[tool.hatch.build.targets.wheel]
packages = ["src/gpu_mt5_bt"]
[tool.hatch.build.targets.sdist]
include = ["src/gpu_mt5_bt", "examples", "tests", "README.md", "pyproject.toml"]
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-ra --strict-markers"
markers = [
"gpu: marks tests that require an NVIDIA GPU with CUDA",
"ray: marks tests that spin up a local Ray cluster",
"mt5: marks tests that require the MetaTrader5 Python package and a running terminal",
"slow: marks tests that take more than ~5 seconds",
]
filterwarnings = [
"ignore::DeprecationWarning:numba.*",
"ignore::DeprecationWarning:ray.*",
]
[tool.coverage.run]
source = ["src/gpu_mt5_bt"]
omit = [
"src/gpu_mt5_bt/kernels/*",
"src/gpu_mt5_bt/cli.py",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
"raise NotImplementedError",
"if __name__ == .__main__.:",
]