-
Notifications
You must be signed in to change notification settings - Fork 114
Expand file tree
/
Copy pathpyproject.toml
More file actions
142 lines (129 loc) · 3.78 KB
/
Copy pathpyproject.toml
File metadata and controls
142 lines (129 loc) · 3.78 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
136
137
138
139
140
141
142
[build-system]
requires = ["setuptools>=61.0", "wheel>=0.46.2"]
build-backend = "setuptools.build_meta"
[project]
name = "chainladder"
version = "0.10.0"
authors = [
{name = "John Bogaardt", email = "jbogaardt@gmail.com"},
]
maintainers = [
{name = "John Bogaardt", email = "jbogaardt@gmail.com"},
]
description = "Chainladder Package - P&C Loss Reserving package"
readme = "README.rst"
license = {text = "MPL-2.0"}
requires-python = ">=3.10"
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
keywords = ["actuarial", "reserving", "insurance", "chainladder", "IBNR"]
dependencies = [
"pandas >=2.3.3, !=3.0.4",
"scikit-learn>1.4.2",
"sparse>=0.9",
"numpy>=2.0",
"matplotlib", # Required for TriangleDisplay.heatmap()
"dill",
"patsy>=1.0.2", # 1.0.1 breaks on pandas 3 default str dtype (np.issubdtype on StringDtype)
]
[project.urls]
Homepage = "https://github.com/casact/chainladder-python"
Documentation = "https://chainladder-python.readthedocs.io/"
Repository = "https://github.com/casact/chainladder-python"
"Bug Tracker" = "https://github.com/casact/chainladder-python/issues"
[project.optional-dependencies]
dev = [
"lxml",
"pytest",
"pytest-cov",
"pytest-xdist",
"jinja2",
"ipython",
"ipykernel",
"pyright",
"ruff",
"pre-commit",
]
docs = [
"sphinx",
"sphinx-rtd-theme",
"nbsphinx",
"numpydoc",
"jupyter-book<2.0", # Pin to v1.x - v2 doesn't support autodoc/autosummary yet
"sphinx-book-theme>=1.1.4,<1.2; python_version < '3.11'",
"sphinx-book-theme>=1.2,<1.3; python_version >= '3.11'",
"sphinx-togglebutton",
"ipython",
"parso>=0.8",
"polars", # For docs examples
"statsmodels>=0.14.6" # For docs example; <0.14.6 fails to import under pandas 3
]
test = [
"lxml",
"nbmake",
"pytest",
"jinja2",
"ipython",
"pytest-cov", # For coverage testing
"polars",
"pyarrow",
"dask",
'statsmodels>=0.14.6'
]
performance = [
"dask", # For distributed computing
"cupy", # For GPU acceleration (if available)
]
all = [
"chainladder[dev,docs,test]",
]
[tool.pytest.ini_options]
testpaths = ["chainladder", "docs/_ext"]
pythonpath = ["docs/_ext"]
[tool.ruff]
target-version = "py310"
preview = true
# Fill-in-the-blank exercise notebook: contains `__fill_in_code__` placeholders
# that are not valid syntax, so ruff cannot parse it.
extend-exclude = ["docs/getting_started/online_sandbox/sandbox_workbook_blank.ipynb"]
[tool.ruff.lint]
select = [
"B018",
"BLE001",
"E2",
"E4",
"E7",
"E9",
"F",
"N802",
"UP034",
]
# Grandfathered violations that predate enabling this rule set. New and
# newly-touched code is still held to the full ruleset above; these files
# are exempted only from the specific codes they already violated so the
# check can be required without blocking unrelated PRs. Remove entries as
# files are cleaned up.
[tool.ruff.lint.per-file-ignores]
"docs/friedland/chapter_10.ipynb" = ["E731", "F841"]
"docs/friedland/chapter_7_part_2.ipynb" = ["N802"]
[tool.ruff.format]
docstring-code-format = true
[tool.setuptools]
include-package-data = true
[tool.setuptools.packages.find]
include = ["chainladder", "chainladder.*"]
[tool.setuptools.package-data]
chainladder = ["utils/data/*", "py.typed"]
[tool.uv]
config-settings = {editable_mode="compat"}