-
Notifications
You must be signed in to change notification settings - Fork 13
/
pyproject.toml
284 lines (265 loc) · 5.66 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
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
[build-system]
requires = ["setuptools>=70", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "DACBench"
version = "0.3.0"
description = "Dynamic Algorithm Configuration Benchmark"
readme = "README.md"
license = { file = "LICENSE" }
keywords = ["DAC", "Dynamic Algorithm Configuration", "HPO"]
authors = [
{ name = "Theresa Eimer", email = "t.eimer@ai.uni-hannover.de" }
]
classifiers = [
"Programming Language :: Python :: 3",
"Natural Language :: English",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Operating System :: POSIX :: Linux",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Scientific/Engineering",
"Topic :: Software Development"
]
requires-python = ">=3.10"
dependencies = [
"gymnasium==0.29.1",
"imageio==2.35.1",
"numpy==1.26.4",
"pandas==2.2.3",
"matplotlib==3.9.2",
"seaborn==0.13.2",
"configspace==1.2.0",
"scikit-learn==1.5.2",
"scipy==1.14.1",
"jupyter==1.0.0",
"Pyro4==4.82"]
[project.urls]
Homepage = "https://github.com/automl/DACBench"
Documentation = "https://automl.github.io/DACBench/main/"
Repository = "https://github.com/automl/DACBench"
Issues = "https://github.com/automl/DACBench/issues"
Changelog = "https://github.com/automl/DACBench/main/CHANGELOG.md"
[project.optional-dependencies]
dev = [
"pytest==8.3.3",
"coverage[toml]==7.6.1",
"pre-commit==3.8.0",
"ruff==0.6.7"
]
example = [
"tabulate==0.9.0",
"rich"
]
docs = [
"automl-sphinx-theme==0.2.0"
]
all = [
"ioh==0.3.17",
"modcma==1.0.8",
"torchvision==0.19.1",
"torch==2.4.1",
"uuid"
]
[tool.extras]
cma = ["ioh==0.3.17",
"modcma==1.0.8"]
sgd = [
"torchvision==0.19.1",
"torch==2.4.1",
]
theory = ["uuid"]
[tool.ruff]
target-version = "py310"
line-length = 88
output-format = "concise"
src = ["src"] # , "examples"
lint.extend-safe-fixes = ["ALL"]
# Allow unused variables when underscore-prefixed.
lint.dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
lint.select = [
"A",
# "ANN", # Handled by mypy
"ARG",
"B",
"BLE",
"COM",
"C4",
"D",
# "DTZ", # One day I should know how to utilize timezones and dates...
"E",
# "EXE", Meh
"ERA",
"F",
"FBT",
"I",
# "ISC", # Favours implicit string concatenation
"INP",
# "INT", # I don't understand this one
"N",
"NPY",
"PD",
"PLC",
"PLE",
"PLR",
"PLW",
"PIE",
"PT",
"PTH",
# "PYI", # Specific to .pyi files for type stubs
"Q",
"PGH004",
"RET",
"RUF",
"C90",
"S",
# "SLF", # Private member accessed (sure, it's python)
"SIM",
# "TRY", # Good in principle, would take a lot of work to statisfy
"T10",
"T20",
"TID",
"TCH",
"UP",
"N",
"W",
"YTT",
]
lint.ignore = [
"D104", # Missing docstring in public package
"D105", # Missing docstring in magic mthod
"D203", # 1 blank line required before class docstring
"D205", # 1 blank line between summary and description
"D401", # First line of docstring should be in imperative mood
"N806", # Variable X in function should be lowercase
"E731", # Do not assign a lambda expression, use a def
"A003", # Shadowing a builtin
"S101", # Use of assert detected.
"W292", # No newline at end of file
"PLC1901", # "" can be simplified to be falsey
"TCH003", # Move stdlib import into TYPE_CHECKING
"B010", # Do not use `setattr`
"COM812",
# These tend to be lighweight and confuse pyright
"PTH123",
"PTH109",
"T201",
"ERA001",
"N812",
"FBT001",
"FBT002",
"FBT003",
"S301",
"SIM115",
"C901",
"PLR0912",
"PLR0913",
"PLR0915",
"PLR2004",
"ARG001",
"ARG002",
"ARG005",
"INP001",
"PLR0911",
"PLW2901",
"S603",
"S607"
]
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".hg",
".mypy_cache",
".nox",
".pants.d",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
"docs",
"*envs/downward/*",
"tests",
"dacbench/challenge_benchmarks",
"*.ipynb"
]
# Exclude a variety of commonly ignored directories.
[tool.ruff.lint.per-file-ignores]
"*test/*.py" = [
"S101",
"D103",
"ANN001",
"ANN201",
"FBT001",
"D100",
"PLR2004",
"PD901", # X is a bad variable name. (pandas)
"TCH",
"N803",
"D100",
"D101",
"D102",
"D107",
"INP001",
"ARG002"
]
"__init__.py" = ["I002"]
"examples/*" = ["INP001", "I002", "E741", "D101", "D103", "T20", "D415", "ERA001", "E402", "E501"]
"docs/*" = ["INP001"]
[tool.ruff.lint.isort]
known-first-party = ["amltk"]
known-third-party = ["sklearn"]
no-lines-before = ["future"]
required-imports = ["from __future__ import annotations"]
combine-as-imports = true
extra-standard-library = ["typing_extensions"]
force-wrap-aliases = true
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.pylint]
max-args = 10 # Changed from default of 5
[tool.pytest.ini_options]
filterwarnings = [
"ignore::UserWarning",
"ignore::DeprecationWarning",
"ignore::FutureWarning"
]
testpaths = ["tests"]
[tool.coverage.run]
omit = ["dacbench/envs/fast-downward/*", "algorithms"]
include = ['dacbench/*']
[tool.coverage.html]
directory = "coverage_report"
[tool.black]
line-length = 88
target_version = ['py36']
include = '\.pyi?$'
exclude = '''
(
/(
\.eggs # exclude a few common directories in the
| \.git # root of the project
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
| dacbench/envs/fast-downward
| algorithms
)/
)
'''