-
Notifications
You must be signed in to change notification settings - Fork 171
Expand file tree
/
Copy pathpyproject.toml
More file actions
132 lines (118 loc) · 2.6 KB
/
pyproject.toml
File metadata and controls
132 lines (118 loc) · 2.6 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
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[project]
name = "fklearn"
version = "4.2.2"
description = "Functional machine learning"
readme = "README.md"
license = "Apache-2.0"
requires-python = ">=3.10,<3.14"
authors = [{ name = "Nubank" }]
# License classifier removed: PEP 639 license expressions (license = "Apache-2.0" above)
# supersede legacy classifiers. Modern setuptools rejects both being present.
classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Operating System :: OS Independent",
]
dependencies = [
"joblib>=1.3.2,<2",
"numpy>=1.26.0,<3",
"pandas>=2.2.3,<3",
"scikit-learn>=1.5,<1.8",
"statsmodels>=0.14.0,<1",
"toolz>=0.12.0,<1",
"tqdm>=4.32.1,<5",
]
[project.urls]
Homepage = "https://github.com/nubank/fklearn"
Documentation = "https://fklearn.readthedocs.io"
Repository = "https://github.com/nubank/fklearn"
[project.optional-dependencies]
lgbm = [
"lightgbm>=4,<5",
]
xgboost = [
"xgboost>=2,<3",
]
catboost = [
"catboost>=1.2.2,<2",
]
tools = [
"shap>=0.43,<0.49",
"swifter>=0.24,<2",
]
demos = [
"matplotlib>=3.0.2,<4",
"scipy>=1.2.1,<2",
]
docs = [
"nbsphinx>=0.4.2,<1",
"Sphinx>=5,<6",
"sphinx-rtd-theme>=0.4.3,<1",
"jinja2<3",
"markupsafe==2.0.1",
]
all_models = [
"fklearn[lgbm,xgboost,catboost]",
]
all = [
"fklearn[all_models,tools]",
]
[dependency-groups]
dev = [
"ruff>=0.12.5",
"pytest>=7.4.3,<9",
"pytest-cov>=2.6.1,<6",
"pytest-xdist>=3.3.1,<4",
"mypy>=1.6.1,<2",
"hypothesis>=6.88.3,<7",
]
[tool.uv]
default-groups = ["dev"]
[tool.pytest.ini_options]
addopts = "-l --color=yes"
testpaths = ["tests"]
pythonpath = ["./src"]
[tool.coverage.run]
branch = true
source = ["src/fklearn"]
[tool.coverage.report]
exclude_lines = [
"raise *",
"except *",
]
omit = [
"*test*",
"*env*",
"*git*",
"*init*",
"*version*",
]
[tool.mypy]
ignore_missing_imports = true
implicit_optional = true
[[tool.mypy.overrides]]
module = "fklearn.*"
disallow_untyped_defs = true
[[tool.mypy.overrides]]
module = "fklearn.metrics.pd_extractors.*"
ignore_errors = true
[tool.ruff]
line-length = 120
target-version = "py310"
[tool.ruff.lint]
select = ["E4", "E7", "E9", "F"]
extend-select = ["E", "F"]
ignore = ["E731", "E741", "F403"]
fixable = ["ALL"]
unfixable = []
[tool.ruff.format]
quote-style = "double"
line-ending = "auto"
indent-style = "space"
docstring-code-format = true
skip-magic-trailing-comma = false