-
Notifications
You must be signed in to change notification settings - Fork 198
Expand file tree
/
Copy pathpyproject.toml
More file actions
98 lines (84 loc) · 2.2 KB
/
pyproject.toml
File metadata and controls
98 lines (84 loc) · 2.2 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "optopsy"
version = "2.3.0"
description = "A nimble backtesting and statistics library for options strategies"
readme = "README.md"
license = "AGPL-3.0-or-later"
requires-python = ">=3.12,<3.14"
authors = [{ name = "Michael Chu", email = "mchchu88@gmail.com" }]
classifiers = [
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
dependencies = [
"pandas",
"numpy",
"tabulate>=0.9.0,<1.0.0",
"pandas-ta-classic>=0.3.59",
"empyrical-reloaded>=0.5.7",
"pytz",
"pydantic>=2.0,<3.0",
"rich>=13.0.0,<15.0.0",
]
[project.urls]
Homepage = "https://github.com/goldspanlabs/optopsy"
[project.optional-dependencies]
docs = [
"mkdocs>=1.6.0,<2.0.0",
"mkdocs-material>=9.0.0,<10.0.0",
"mkdocstrings[python]>=0.25.0,<2.0.0",
]
data = [
"pyarrow>=14.0.0",
"requests>=2.28.0,<3.0.0",
"python-dotenv>=1.0.0,<2.0.0",
"yfinance>=0.2.0,<2.0.0",
]
ui = [
"optopsy[data]",
"chainlit>=1.0.0,<3.0.0",
"litellm>=1.0.0,<3.0.0",
"sqlalchemy>=2.0.0,<3.0.0",
"aiosqlite>=0.17.0,<1.0.0",
"asyncpg>=0.29.0,<1.0.0",
"psycopg2-binary>=2.9.0,<3.0.0",
"greenlet>=3.0.0",
"plotly>=5.0.0,<7.0.0",
]
[project.scripts]
optopsy-chat = "optopsy.ui.cli:main"
optopsy-data = "optopsy.data.cli:main"
[tool.hatch.build.targets.wheel]
packages = ["optopsy"]
# --- ruff (was ruff.toml) ---
[tool.ruff]
target-version = "py312"
[tool.ruff.lint]
select = ["E", "F", "I"]
ignore = ["E501"]
[tool.ruff.lint.per-file-ignores]
"optopsy/ui/agent.py" = ["E402"]
"optopsy/ui/app.py" = ["E402"]
"**/__init__.py" = ["F401"]
"tests/*" = ["F403", "F405", "E712"]
# --- ty ---
[tool.ty.src]
exclude = ["optopsy/ui/", "optopsy/data/"]
# --- pytest (was pytest.ini) ---
[tool.pytest.ini_options]
addopts = "--cov=optopsy --cov-report=term-missing"
filterwarnings = ["ignore::DeprecationWarning:pandas_ta_classic"]
[dependency-groups]
dev = [
"pandas-stubs>=3.0.0.260204",
"pre-commit>=4.5.1",
"pytest>=9.0.2",
"pytest-cov>=7.0.0",
"ruff>=0.15.2",
"ty>=0.0.18",
"types-requests>=2.32.4.20260107",
]