-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
87 lines (74 loc) · 1.93 KB
/
pyproject.toml
File metadata and controls
87 lines (74 loc) · 1.93 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
[tool.poetry]
name = "nexa-backtest"
version = "0.8.0"
description = "Backtesting framework for European power markets"
authors = ["Phase Nexa <dev@phasenexa.com>"]
license = "MIT"
readme = "README.md"
packages = [{ include = "nexa_backtest", from = "src" }]
repository = "https://github.com/phasenexa/nexa-backtest"
[tool.poetry.dependencies]
python = "^3.11"
pydantic = ">=2.0"
pyarrow = ">=14.0"
numpy = ">=1.26"
pandas = ">=2.0"
click = ">=8.0"
[tool.poetry.scripts]
nexa = "nexa_backtest.cli.main:cli"
[tool.poetry.extras]
plot = ["matplotlib"]
ml = ["onnxruntime", "joblib"]
[tool.poetry.group.dev.dependencies]
pytest = ">=7.4"
pytest-cov = ">=4.1"
mypy = ">=1.8"
ruff = ">=0.3"
pandas-stubs = ">=2.0"
matplotlib = "^3.8"
jupyter = "^1.0"
nbmake = "^1.5"
nbconvert = "^7.0"
ipykernel = "^6.0"
onnxruntime = ">=1.16"
scikit-learn = ">=1.3"
skl2onnx = ">=1.16"
joblib = ">=1.3"
[tool.ruff]
target-version = "py311"
line-length = 100
src = ["src"]
exclude = [
"tests/fixtures/validation/syntax_error.py",
]
[tool.ruff.lint]
select = ["E", "F", "W", "I", "UP", "ANN", "B", "C4", "SIM", "RUF"]
ignore = ["ANN401"]
[tool.ruff.lint.per-file-ignores]
"tests/**" = ["ANN"]
# HTML templates contain long embedded strings that cannot be meaningfully split
"src/nexa_backtest/analysis/report.py" = ["E501"]
"src/nexa_backtest/analysis/comparison_report.py" = ["E501"]
# Validation test fixtures are intentionally broken in various ways
"tests/fixtures/validation/syntax_error.py" = ["E999"]
[tool.mypy]
python_version = "3.11"
strict = true
files = ["src"]
[[tool.mypy.overrides]]
module = ["pyarrow", "pyarrow.*"]
ignore_missing_imports = true
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "--tb=short"
[tool.coverage.run]
source = ["src/nexa_backtest"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
"\\.\\.\\.",
]
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"