-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
112 lines (103 loc) · 3.2 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
[tool.poetry]
name = "blackboxopt"
version = "5.0.4"
description = "A common interface for blackbox optimization algorithms along with useful helpers like parallel optimization loops, analysis and visualization scripts."
readme = "README.md"
repository = "https://github.com/boschresearch/blackboxopt"
authors = ["Bosch Center for AI, Robert Bosch GmbH"]
license = "Apache-2.0"
classifiers = [
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
]
[[tool.poetry.source]]
name = "pytorch-cpu"
url = "https://download.pytorch.org/whl/cpu"
priority = "explicit"
[tool.poetry.dependencies]
python = ">=3.8,<3.12"
parameterspace = ">=0.7.2"
numpy = {version = "^1.22.0", optional = true}
plotly = {version = "^5.10.0", optional = true}
scipy = {version = "^1.6.0", optional = true}
statsmodels = {version = "^0.13.2", optional = true}
dask = {version = "^2023.1.0", optional = true}
distributed = {version = "^2023.1.0", optional = true}
pandas = {version = "^1.2.4", optional = true}
sympy = {version = "^1.12", optional = true}
torch = {version = ">=1.12", optional = true, source = "pytorch-cpu"}
botorch = {version = "^0.7.1", optional = true}
pymoo = {version = ">=0.5,<1.0", optional = true}
[tool.poetry.dev-dependencies]
black = "^22.3.0"
pytest = "^7.2.0"
mypy = "^1.7"
pytest-timeout = "^2.1.0"
coverage = "^7.2.7"
mkdocs = "^1.3.0"
mkdocstrings = {version="^0.18.1", extras=["python-legacy"]}
mkdocs-material = "^8.2.11"
mkdocs-gen-files = "^0.3.4"
mkdocs-awesome-pages-plugin = "^2.7.0"
mike = "^1.1.2"
ruff = "^0.0.259"
pre-commit = "^2.18.1"
toml = "^0.10.2"
types-toml = "^0.10.7"
kaleido = "0.2.1" # pin hard, because 0.2.1post1 fails to install
[tool.poetry.extras]
all = ["numpy", "plotly", "scipy", "statsmodels", "dask", "distributed", "pandas", "sympy", "torch", "botorch", "pymoo", "scikit-learn"]
hyperband = ["numpy"]
bohb = ["numpy", "scipy", "statsmodels"]
botorch = ["sympy", "torch", "botorch"]
space-fill = ["numpy", "scipy"]
dask = ["dask", "distributed"]
visualization = ["plotly", "scipy", "pandas", "pymoo"]
testing = ["numpy"]
examples = ["scikit-learn", "dask", "distributed"]
[tool.mypy]
ignore_missing_imports = true
no_strict_optional = true
[tool.black]
line-length = 88
# Examples should remain with line-length 80:
extend-exclude = 'blackboxopt/examples'
[tool.ruff]
# Enable pycodestyle, Pyflakes, isort
select = ["E", "F", "I"]
ignore = []
# Allow autofix for all enabled rules (when `--fix`) is provided.
fixable = ["A", "B", "C", "D", "E", "F", "I"]
unfixable = []
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".mypy_cache",
".nox",
".pants.d",
".pytype",
".ruff_cache",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"venv",
]
line-length = 88
# Ignore unused import in __init__.py files
per-file-ignores = { "__init__.py" = ["F401"] }
[tool.coverage.run]
source = ['blackboxopt']
relative_files = true
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"