-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
191 lines (174 loc) · 5.28 KB
/
Copy pathpyproject.toml
File metadata and controls
191 lines (174 loc) · 5.28 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
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
[project]
name = "Sparkle"
version = "0.9.7"
description = """\
Sparkle is a Programming by Optimisation (PbO)-based problem-solving \
platform designed to enable the widespread and effective use of PbO \
techniques for improving the state-of-the-art in solving a broad \
range of prominent AI problems, including SAT and AI Planning. \
"""
requires-python = ">=3.10"
readme = "README.md"
license = "MIT"
authors = [
{ name = "Thijs Snelleman" },
{ name = "Jeroen Rook" },
{ name = "Koen van der Blom" },
{ name = "Jeremie Gobeil" },
{ name = "Chuan Luo" },
{ name = "Holger H. Hoos" },
]
maintainers = [
{ name = "Thijs Snelleman", email = "snelleman@aim.rwth-aachen.de" },
{ name = "Jeroen Rook", email = "FILL@ME.de" },
{ name = "Hadar Shavit", email = "shavit@aim.rwth-aachen.de" },
{ email = "sparkle@aim.rwth-aachen.de" },
]
keywords = [
"algorithm",
"configuration",
"selection",
"hyperparameter",
"optimization",
"empirical",
"evaluation",
"solver",
"sat",
"ai",
"planning",
]
classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Natural Language :: English",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Scientific/Engineering",
"Topic :: Software Development",
]
dependencies = [
"numpy>=1.26.4",
"pandas==2.3.3",
"filelock==3.19.1",
"smac==2.3.1",
"RunRunner==0.2.0.4",
"asf==0.1.3",
"xgboost==2.1.3",
"scikit-learn==1.3.2",
"plotly==6.1.2",
"kaleido==1.0.0",
"pylatex==1.4.2",
"tabulate==0.9.0",
"pytermgui==7.7.2",
"tqdm==4.66.5",
]
[project.optional-dependencies]
dev = ["sparkle[tooling,test]"]
tooling = [
"ruff==0.12.7",
"pep8-naming==0.13.2",
"pre-commit==3.7.1"
]
test = [
"pytest==8.1.1",
"pytest-mock==3.10.0",
"pytest-cov==5.0.0",
"pytest-html==4.1.1"
]
docs = [
"myst-parser",
"Sphinx",
"sphinxcontrib-jsmath",
"sphinxcontrib-autoprogram",
"sphinx-copybutton",
"sphinx_rtd_theme==2.0.0",
]
# To ensure package get shipped with data files
[build-system]
requires = [
"setuptools>=64",
]
build-backend = "setuptools.build_meta"
[project.scripts]
sparkle = "sparkle.CLI._cli_:main" # Enable 'sparkle [command]' from the command line
[project.urls]
Homepage = "https://github.com/ADA-research/Sparkle"
Documentation = "https://ada-research.github.io/Sparkle/"
Repository = "https://github.com/ADA-research/Sparkle"
Issues = "https://github.com/ADA-research/Sparkle/issues"
Changelog = "https://github.com/ADA-research/Sparkle/blob/main/CHANGELOG.md"
[tool.ruff]
# Line and docstring length
line-length = 89
indent-width = 4
# File excludes
exclude = [
"src/sparkle/Components/runsolver/",
"Examples/Resources/CVRP/",
"Examples/Resources/CCAG/",
"Examples/Resources/Solvers/CSCCSat/",
"Examples/Resources/Solvers/PbO-CCSAT-Generic/",
"Examples/Resources/Solvers/MiniSAT/",
"Examples/Resources/MinVC/",
"Examples/Resources/Extractors/",
"Extractors/",
"Instances/",
"Solvers/",
"Settings/",
"Snapshots/",
"Output/",
"Tmp/",
".git",
"__pycache__",
".pytest_cache",
]
# See https://docs.astral.sh/ruff/rules/
lint.select = [
"E", # pycodestyle errors
"F", # pyflakes
"W", # pycodestyle warnings
"D", # pydocstyle (flake8-docstrings)
"Q", # flake8-quotes
"S", # flake8-bandit
"N", # pep8-naming
"PTH", # flake8-use-pathlib
"ANN", # flake8-annotations
]
# Ignored rules
lint.ignore = [
"D401", # First line of docstring should be in imperative mood: "{first_line}"
"D404", # First word of the docstring should not be "This"
"D413", # Missing blank line after last section ("{name}")
"D203", # 1 blank line required before class docstring
"D204", # 1 blank line required after class docstring
"D213", # Multi-line docstring summary should start at the second line
"D300", # Use triple double quotes """
"S605", "S607", "S404", "S603", "S311", "S310", # Certain Bandit rules
"E401", # Multiple imports on one line
"PTH201", # Do not pass the current directory explicitly to Path
#"PTH116", # os.stat() should be replaced by Path.stat(), Path.owner(), or Path.group()
#"PTH208", # Use `pathlib.Path.iterdir()` instead.
"ANN401", # Dynamically typed expressions (typing.Any) are disallowed in `initial_values`
"E501", # Line too long ({width} > {limit})
]
# Per-file ignores
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
"setup.py" = ["E501"]
"tests/*" = ["S101"]
"test/*" = ["S101"]
"src/sparkle/platform/settings_objects.py" = ["S110", "ANN401"]
"src/sparkle/tools/parameters.py" = ["S110"]
"src/sparkle/types/__init__.py" = ["S110", "S307", "F401"]
"src/sparkle/instance/__init__.py" = ["N802"]
"src/sparkle/configurator/implementations/__init__.py" = ["S307", "F401"]
"Documentation/source/userguide/conf.py" = ["PTH100"]
"Documentation/source/conf.py" = ["PTH100"]
[lint.mccabe]
max-complexity = 15