-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
134 lines (122 loc) · 3.25 KB
/
Copy pathpyproject.toml
File metadata and controls
134 lines (122 loc) · 3.25 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
[project]
name = "quantcortex"
version = "0.1.0"
description = "Modular quantitative research and paper-execution platform"
keywords = ["quantitative-finance", "backtesting", "portfolio", "research"]
authors = [
{ name = "Kevin Lee", email = "kevinlee69720@g.ucla.edu" },
]
readme = "README.md"
license = "MIT"
requires-python = ">=3.11,<3.15"
dependencies = [
"numpy>=1.26",
"pandas>=2.1",
"scipy>=1.11",
"scikit-learn>=1.3",
"matplotlib>=3.8",
"pyarrow>=14.0",
]
[project.urls]
Repository = "https://github.com/magnaquant/quantcortex"
Issues = "https://github.com/magnaquant/quantcortex/issues"
Documentation = "https://github.com/magnaquant/quantcortex#readme"
Paper = "https://github.com/magnaquant/quantcortex/blob/main/paper/quantcortex_audit_neurips2026.pdf"
[project.optional-dependencies]
ml = [
"xgboost>=2.0",
"lightgbm>=4.1",
"catboost>=1.2",
]
rl = [
"stable-baselines3[extra]>=2.2",
"gymnasium>=0.29",
"torch>=2.12",
]
regime = ["hmmlearn>=0.3"]
nlp = [
"transformers>=4.38",
"torch>=2.12",
]
brokers = [
"alpaca-py>=0.43.4,<0.44",
"ib-async>=2.1,<2.2",
"ccxt>=4.2",
]
providers = [
"yfinance>=0.2.37",
"polygon-api-client>=1.13",
"fredapi>=0.5",
"lxml>=5.0",
]
storage = [
"redis>=5.0",
"sqlalchemy>=2.0",
"psycopg2-binary>=2.9",
]
all = [
"xgboost>=2.0",
"lightgbm>=4.1",
"catboost>=1.2",
"stable-baselines3[extra]>=2.2",
"gymnasium>=0.29",
"hmmlearn>=0.3",
"transformers>=4.38",
"torch>=2.12",
"alpaca-py>=0.43.4,<0.44",
"ib-async>=2.1,<2.2",
"ccxt>=4.2",
"yfinance>=0.2.37",
"polygon-api-client>=1.13",
"fredapi>=0.5",
"lxml>=5.0",
"redis>=5.0",
"sqlalchemy>=2.0",
"psycopg2-binary>=2.9",
]
[tool.poetry]
packages = [
{ include = "quantcortex" },
]
[tool.poetry.requires-plugins]
poetry-plugin-export = ">=1.10,<1.11"
[tool.poetry.group.test.dependencies]
jsonschema = { version = ">=4.20,<5", extras = ["format-nongpl"] }
packaging = ">=24"
pytest = ">=8.0"
pytest-cov = ">=4.1"
ruff = ">=0.3"
[tool.poetry.group.dev.dependencies]
jupyter = ">=1.0"
nbconvert = ">=7.0"
ipykernel = ">=6.29"
setuptools = "<82"
[tool.poetry.group.build.dependencies]
build = ">=1.2"
[build-system]
requires = ["poetry-core==2.4.0"]
build-backend = "poetry.core.masonry.api"
[tool.pytest.ini_options]
# The repository root holds the `quantcortex` package (no src/ layout), so put
# it on the import path: `import quantcortex.portfolio`, etc. resolve from root.
pythonpath = ["."]
testpaths = ["tests"]
addopts = "--tb=short -ra"
filterwarnings = [
"ignore::DeprecationWarning",
"ignore::PendingDeprecationWarning",
]
[tool.ruff]
line-length = 88
target-version = "py311"
# Notebooks legitimately set up the environment (sys.path, matplotlib backend)
# before imports and use terse cells; linting generated notebooks is noise.
extend-exclude = ["research", ".venv"]
[tool.ruff.lint]
select = ["E", "F", "I", "W", "B", "RUF012"]
ignore = ["E501"]
[tool.ruff.lint.per-file-ignores]
# Operational scripts intentionally set the matplotlib backend / warnings /
# logging levels before importing modules that pull those libraries in, so
# module-level imports are not at the very top (E402 is expected, not a defect).
"scripts/*" = ["E402"]