-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
175 lines (162 loc) · 4.28 KB
/
pyproject.toml
File metadata and controls
175 lines (162 loc) · 4.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
[build-system]
requires = ["setuptools>=64", "setuptools_scm>=8"]
build-backend = "setuptools.build_meta"
[project]
name = "cluster-utils"
dynamic = ["version"]
description = """
A tool for easily running hyperparameter optimization or grid search on Slurm or \
HTCondor clusters. It takes care of submitting and monitoring the jobs as well as \
aggregating the results.\
"""
readme = "README.md"
license = {file = "LICENSE"}
requires-python = ">=3.8"
authors = [
{ name = "Michal Rolinek", email = "michalrolinek@gmail.com" },
{ name = "Dominik Zietlow" },
{ name = "Sebastian Blaes" },
{ name = "Georg Martius" },
{ name = "Marin Vlastelica" },
{ name = "Maximilian Seitzer" },
{ name = "Pierre Schuhmacher" },
{ name = "Felix Kloss" },
]
maintainers = [
{ email = "georg.martius@uni-tuebingen.de" },
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
]
dependencies = [
# NOTE: List only dependencies of the 'client' and 'base' sub-packages here.
# Dependencies of the 'server' sub-package should go to the optional-dependencies.
"al-smart-settings",
]
[tool.setuptools_scm]
# Can be empty if no extra settings are needed, presence enables setuptools_scm.
# You can check which version it picked by running `python3 -m setuptools_scm` in the
# package root.
[project.urls]
Documentation = "https://cluster-utils.readthedocs.io/"
Repository = "https://github.com/martius-lab/cluster_utils"
Issues = "https://github.com/martius-lab/cluster_utils/issues"
[project.optional-dependencies]
# all the dependencies that are needed for running the server process of cluster_utils
# (grid_search/hp_optimization) but are not needed by the job scripts.
runner = [
"colorama",
"gitpython>=3.0.5",
"numpy<2",
"pandas[output_formatting]>=2.0.3",
"scipy",
"tqdm",
]
all = [
"cluster_utils[runner]",
"cluster_utils[nevergrad]",
"cluster_utils[report]",
]
all-dev = [
"cluster_utils[all]",
"cluster_utils[dev]",
"cluster_utils[docs]",
"cluster_utils[mypy]",
]
dev = [
"absolufy-imports",
"cluster_utils[lint]",
"cluster_utils[test]",
"nox>=2022.8.7",
"pre-commit",
]
docs = [
"myst-parser",
"sphinx",
"sphinx-immaterial",
]
lint = [
"black==24.4.2",
"ruff==0.5.0",
]
mypy = [
"cluster_utils[all]",
"mypy==1.10.1",
"pandas-stubs",
"tomli-w",
"types-colorama",
"types-tqdm",
"types-PyYaml",
]
test = [
"pytest==8.2.2",
"tomli-w",
]
nevergrad = [
"nevergrad",
]
report = [
"matplotlib",
"scikit-learn",
"seaborn>=0.11.0",
]
[project.scripts]
cluster_utils_plot_timeline = "cluster_utils.scripts.plot_job_timeline:main"
[tool.black]
preview = true
target-version = ['py38']
[tool.ruff]
target-version = "py38"
src = ["src"]
# for a complete list of available rules see https://docs.astral.sh/ruff/rules/
# TODO commented-out rules below should be enabled but currently result in quite
# a lot of warnings, which need to be fixed first.
lint.select = [
"F", # pyflakes
"E", # pycodestyle
"W", # pycodestyle
"B", # bugbear
"I", # isort
"N", # naming
# "UP", # pyupgrade
"A", # builtins
"FA", # future-annotations
# "G", # logging-format
"PT", # pytest-style
"SIM", # simplify
# "ARG", # unused-arguments
# "PD", # pandas-vet
# "PL", # pylint
# "NPY", # numpy
"RUF100", # unused 'noqa' directive
]
lint.ignore = [
"E501", # line too long (mostly handled by black)
# E731: Do not use a lambda expression use a def (local def is often ugly)
"E731",
"PT011", # pytest-raises-too-broad (use `match` parameter)
"SIM108", # Use ternary operator instead of if-else-block
# SIM910: use dict.get("foo") instead of dict.get("foo", None)
# Disabled as it's sometimes nice to be explicit.
"SIM910",
]
[tool.mypy]
exclude = ["build/", "examples/"]
[[tool.mypy.overrides]]
# list all modules for which no type hints are available
module = [
"docutils.*",
"matplotlib.*",
"nevergrad.*",
"nox",
"pytest",
"scipy.*",
"seaborn",
"setuptools",
"sklearn.ensemble",
"smart_settings", # TODO we can add hints there
"sphinx.*",
]
ignore_missing_imports = true