Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
145 lines (124 loc) 路 3.41 KB
/
Copy pathpyproject.toml
File metadata and controls
145 lines (124 loc) 路 3.41 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
143
144
145
[build-system]
requires = ["setuptools>=64", "setuptools-scm>=8", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "shapash"
dynamic = ["version"]
authors = [
{name = "Yann Golhen"},
{name = "Sebastien Bidault"},
{name = "Yann Lagre"},
{name = "Maxime Gendre"},
{name = "Thomas Bouch茅", email = "thomas.bouche@maif.fr"},
{name = "Maxime Lecardonnel"},
{name = "Guillaume Vignal"},
]
description = "Shapash is a Python library which aims to make machine learning interpretable and understandable by everyone."
readme = "README.md"
requires-python = ">=3.11, <3.15"
license = "Apache-2.0"
license-files = ["LICENSE"]
keywords = ["shapash"]
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Operating System :: OS Independent",
]
dependencies = [
"category_encoders>=2.6.0",
"dash-bootstrap-components>=2.0.0",
"dash-daq>=0.6.0",
"dash>=3.0.0,<4.0.0",
"Flask>=1.0.4",
"matplotlib>=3.8.4",
"nbformat>5.8.0",
"numba>=0.60.0",
"numpy>=2.0.0",
# 3.0.4 yanked upstream: segfaults in datetime ops (pandas #66083)
"pandas>=2.2.2,!=3.0.4,<4.0.0",
"phik>=0.12.4",
"plotly>=5.0.0,<8.0.0",
"scikit-learn>=1.8.0,<1.10.0",
"scipy>=1.13.0",
"shap>=0.46.0",
"shapely>=2.0.0",
]
[project.optional-dependencies] # Optional
report = [
"panel>=1.8.10",
]
xgboost = ["xgboost>=2.1.0"]
catboost = ["catboost>=1.2.8"]
lightgbm = ["lightgbm>=4.4.0"]
lime = ["lime>=0.2.0.0"]
dev = ["pre-commit", "mypy", "ruff"]
test = ["pytest", "pytest-cov", "shapash[xgboost,catboost,lightgbm,lime,report]"]
doc = [
"nbsphinx==0.8.8",
"sphinx_material==0.0.35",
"Sphinx==4.5.0",
"sphinxcontrib-applehelp==1.0.2",
"sphinxcontrib-devhelp==1.0.2",
"sphinxcontrib-htmlhelp==2.0.0",
"sphinxcontrib-jsmath==1.0.1",
"sphinxcontrib-qthelp==1.0.3",
"sphinxcontrib-serializinghtml==1.1.5",
]
all = ["shapash[dev, test, doc]"]
[project.urls]
Homepage = "https://github.com/MAIF/shapash"
[tool.setuptools]
package-dir = {"" = "."}
[tool.setuptools.packages.find]
where = ["."]
[tool.setuptools.package-data]
"*" = ["*.csv", "*json", "*.yml", "*.css", "*.js", "*.png", "*.ico", "*.ipynb", "*.html", "*.j2"]
[tool.setuptools_scm]
[tool.pytest.ini_options]
pythonpath = ["."]
testpaths = ["tests"]
[tool.coverage.report]
show_missing = true
fail_under = 75
[tool.tox]
legacy_tox_ini = """
[tox]
envlist = py311, py312, py313, py314
[testenv]
extras = test
commands = pytest {posargs}
"""
[tool.mypy]
exclude = ["tests", "tutorial"]
ignore_missing_imports = true
[tool.ruff]
line-length = 120
exclude = [
"tests",
"docs",
"tutorial",
]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"F", # pyflakes
"W", # pycodestyle warnings
"A", # flake8-builtins
"PLC", # pylint conventions
"PLE", # pylint errors
"PLW", # pylint warnings
"UP", # pyupgrade
"S", # flake8-bandit,
"B", # flake8-bugbear
"I", # isort
"D", # pydocstyle
"NPY", # NumPy-specific rules
]
ignore = ["E501", "D2", "D3", "D4", "D104", "D100", "D105", "D106", "D107", "S311"]
exclude = ["tests/*", "*.ipynb"]
[tool.ruff.lint.per-file-ignores]
"shapash/__init__.py" = ["F401"]
"shapash/backend/__init__.py" = ["F401"]