-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathpyproject.toml
More file actions
136 lines (122 loc) · 3.44 KB
/
pyproject.toml
File metadata and controls
136 lines (122 loc) · 3.44 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
135
# Main project metadata
[project]
name = 'jquantstats'
version = "0.9.3"
description = "Analytics for quants"
authors = [{name='tschm', email= 'thomas.schmelzer@gmail.com'}]
readme = "README.md"
requires-python = ">=3.11"
dependencies = [
"jinja2>=3.1.0",
"narwhals>=2.0.0",
"numpy>=2.0.0",
"plotly>=6.0.0",
"polars>=1.35.2",
"scipy>=1.14.1"
]
license = "MIT"
license-files = ["LICENSE"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Financial and Insurance Industry",
"Intended Audience :: Science/Research",
"Topic :: Office/Business :: Financial",
"Topic :: Scientific/Engineering :: Mathematics",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"License :: OSI Approved :: MIT License",
]
# Project URLs for documentation and reference
[project.urls]
Homepage = "https://github.com/jebel-quant/jquantstats"
Repository = "https://github.com/jebel-quant/jquantstats"
# Optional dependencies that can be installed with extras (e.g., pip install jquantstats[plot])
[project.optional-dependencies]
plot = ["kaleido==1.3.0"]
web = [
"fastapi>=0.115.0",
"uvicorn>=0.32.0",
"python-multipart>=0.0.12",
]
[dependency-groups]
dev = [
"pandas>=2.2.3", # required by quantstats (comparison tests only — not a runtime dependency)
"pyarrow>=22.0.0",
"yfinance==1.4.1",
"ipython==9.14.0",
"quantstats==0.0.81", # reference implementation used in test_quantstats.py for metric validation
"httpx>=0.28.1",
"marimo>=0.23.6",
]
test = [
"pytest>=8.0",
"pytest-cov>=6.0",
"pytest-html>=4.0",
"pytest-mock>=3.0",
"pytest-xdist>=3.0",
"pytest-timeout>=2.0",
"pytest-benchmark>=5.2.3",
"hypothesis>=6.150.0",
"syrupy>=4.9.1",
"pygal>=3.1.0",
"python-dotenv>=1.0",
]
lint = [
"pre-commit>=4.0",
"ty>=0.0.30",
]
# Build system configuration
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
# Configuration for wheel build
[tool.hatch.build.targets.wheel]
packages = ["src/jquantstats"]
# Configuration for what files to include in the build
[tool.hatch.build]
include = [
"LICENSE", # Ensure the LICENSE file is included in your package
"README.md",
"src/jquantstats",
"src/jquantstats/py.typed",
]
# Bandit security linter configuration
[tool.bandit]
exclude_dirs = ["src/tests"] # Exclude test directories from security scanning
# Ignore specific dependency issues
[tool.deptry.per_rule_ignores]
DEP002 = ["kaleido", "fastapi", "uvicorn", "python-multipart"] # DEP002: Unused direct dependencies
# Package to module name mapping
[tool.deptry.package_module_name_map]
jinja2 = "jinja2"
numpy = "numpy"
plotly = "plotly"
polars = "polars"
pandas = "pandas"
scipy = "scipy"
kaleido = "kaleido"
fastapi = "fastapi"
uvicorn = "uvicorn"
yfinance = "yfinance"
ipython = "ipython"
quantstats = "quantstats"
marimo = "marimo"
hypothesis = "hypothesis"
narwhals = "narwhals"
python-multipart = "python_multipart"
pyarrow = "pyarrow"
httpx = "httpx"
# Coverage configuration
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:", # type-only imports are never executed at runtime
]
# Interrogate docstring coverage configuration
[tool.interrogate]
fail-under = 100
ignore-init-method = true
ignore-magic = true
ignore-overloaded-functions = true