forked from bkellerman/scikit-learn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
211 lines (201 loc) · 5.85 KB
/
pyproject.toml
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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
[project]
name = "scikit-learn"
version = "1.6.dev0"
description = "A set of python modules for machine learning and data mining"
readme = "README.rst"
maintainers = [
{name = "scikit-learn developers", email="scikit-learn@python.org"},
]
dependencies = [
"numpy>=1.19.5",
"scipy>=1.6.0",
"joblib>=1.2.0",
"threadpoolctl>=3.1.0",
]
requires-python = ">=3.9"
license = {text = "new BSD"}
classifiers=[
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Programming Language :: C",
"Programming Language :: Python",
"Topic :: Software Development",
"Topic :: Scientific/Engineering",
"Development Status :: 5 - Production/Stable",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Operating System :: Unix",
"Operating System :: MacOS",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
[project.urls]
homepage = "https://scikit-learn.org"
source = "https://github.com/scikit-learn/scikit-learn"
download = "https://pypi.org/project/scikit-learn/#files"
tracker = "https://github.com/scikit-learn/scikit-learn/issues"
"release notes" = "https://scikit-learn.org/stable/whats_new"
[project.optional-dependencies]
build = ["numpy>=1.19.5", "scipy>=1.6.0", "cython>=3.0.10", "meson-python>=0.15.0"]
install = ["numpy>=1.19.5", "scipy>=1.6.0", "joblib>=1.2.0", "threadpoolctl>=3.1.0"]
benchmark = ["matplotlib>=3.3.4", "pandas>=1.1.5", "memory_profiler>=0.57.0"]
docs = [
"matplotlib>=3.3.4",
"scikit-image>=0.17.2",
"pandas>=1.1.5",
"seaborn>=0.9.0",
"memory_profiler>=0.57.0",
"sphinx>=6.0.0",
"sphinx-copybutton>=0.5.2",
"sphinx-gallery>=0.15.0",
"numpydoc>=1.2.0",
"Pillow>=7.1.2",
"pooch>=1.6.0",
"sphinx-prompt>=1.3.0",
"sphinxext-opengraph>=0.4.2",
"plotly>=5.14.0",
"polars>=0.19.12"
]
examples = [
"matplotlib>=3.3.4",
"scikit-image>=0.17.2",
"pandas>=1.1.5",
"seaborn>=0.9.0",
"pooch>=1.6.0",
"plotly>=5.14.0",
]
tests = [
"matplotlib>=3.3.4",
"scikit-image>=0.17.2",
"pandas>=1.1.5",
"pytest>=7.1.2",
"pytest-cov>=2.9.0",
"ruff>=0.2.1",
"black>=24.3.0",
"mypy>=1.9",
"pyamg>=4.0.0",
"polars>=0.19.12",
"pyarrow>=12.0.0",
"numpydoc>=1.2.0",
"pooch>=1.6.0",
]
maintenance = ["conda-lock==2.5.6"]
[build-system]
build-backend = "mesonpy"
# Minimum requirements for the build system to execute.
requires = [
"meson-python>=0.15.0",
"Cython>=3.0.10",
"numpy>=1.25",
"scipy>=1.6.0",
]
[tool.black]
line-length = 88
target_version = ['py39', 'py310', 'py311']
preview = true
exclude = '''
/(
\.eggs # exclude a few common directories in the
| \.git # root of the project
| \.mypy_cache
| \.vscode
| build
| dist
| doc/tutorial
| doc/_build
| doc/auto_examples
| sklearn/externals
| asv_benchmarks/env
)/
'''
[tool.ruff]
# max line length for black
line-length = 88
target-version = "py38"
exclude=[
".git",
"__pycache__",
"dist",
"sklearn/externals",
"doc/_build",
"doc/auto_examples",
"doc/tutorial",
"build",
"asv_benchmarks/env",
"asv_benchmarks/html",
"asv_benchmarks/results",
"asv_benchmarks/benchmarks/cache",
]
[tool.ruff.lint]
# all rules can be found here: https://beta.ruff.rs/docs/rules/
select = ["E", "F", "W", "I"]
ignore=[
# space before : (needed for how black formats slicing)
"E203",
# do not assign a lambda expression, use a def
"E731",
# do not use variables named 'l', 'O', or 'I'
"E741",
]
[tool.ruff.lint.per-file-ignores]
# It's fine not to put the import at the top of the file in the examples
# folder.
"examples/*"=["E402"]
"doc/conf.py"=["E402"]
[tool.cython-lint]
# Ignore the same error codes as ruff
# + E501 (line too long) because keeping it < 88 in cython
# often makes code less readable.
ignore = [
# multiple spaces/tab after comma
'E24',
# space before : (needed for how black formats slicing)
'E203',
# line too long
'E501',
# do not assign a lambda expression, use a def
'E731',
# do not use variables named 'l', 'O', or 'I'
'E741',
# line break before binary operator
'W503',
# line break after binary operator
'W504',
]
# Exclude files are generated from tempita templates
exclude= '''
(
asv_benchmarks/
| sklearn/_loss/_loss.pyx
| sklearn/linear_model/_sag_fast.pyx
| sklearn/linear_model/_sgd_fast.pyx
| sklearn/utils/_seq_dataset.pyx
| sklearn/utils/_seq_dataset.pxd
| sklearn/utils/_weight_vector.pyx
| sklearn/utils/_weight_vector.pxd
| sklearn/metrics/_dist_metrics.pyx
| sklearn/metrics/_dist_metrics.pxd
| sklearn/metrics/_pairwise_distances_reduction/_argkmin.pxd
| sklearn/metrics/_pairwise_distances_reduction/_argkmin.pyx
| sklearn/metrics/_pairwise_distances_reduction/_argkmin_classmode.pyx
| sklearn/metrics/_pairwise_distances_reduction/_base.pxd
| sklearn/metrics/_pairwise_distances_reduction/_base.pyx
| sklearn/metrics/_pairwise_distances_reduction/_datasets_pair.pxd
| sklearn/metrics/_pairwise_distances_reduction/_datasets_pair.pyx
| sklearn/metrics/_pairwise_distances_reduction/_middle_term_computer.pxd
| sklearn/metrics/_pairwise_distances_reduction/_middle_term_computer.pyx
| sklearn/metrics/_pairwise_distances_reduction/_radius_neighbors.pxd
| sklearn/metrics/_pairwise_distances_reduction/_radius_neighbors.pyx
)
'''
[tool.check-sdist]
# These settings should match .gitattributes
sdist-only = []
git-only = [".*", "asv_benchmarks", "azure-pipelines.yml", "benchmarks", "build_tools", "maint_tools"]
default-ignore = false