-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
117 lines (100 loc) · 2.84 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
[tool.poetry]
name = "parameterspace"
version = "0.10.0"
description = "Parametrized hierarchical spaces with flexible priors and transformations."
readme = "README.md"
repository = "https://github.com/boschresearch/parameterspace"
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",
]
[tool.poetry.dependencies]
python = ">=3.8,<4.0"
numpy = ">=1.22.0"
scipy = ">=1.6.0"
[tool.poetry.dev-dependencies]
black = "23.3.0"
isort = "^5.12.0"
mkdocs = "^1.4.3"
mkdocs-awesome-pages-plugin = "^2.9.1"
mkdocs-gen-files = "^0.5.0"
mkdocs-material = "^9.1.14"
mkdocstrings = {version="^0.21.2", extras=["python-legacy"]}
mkdocs-jupyter = "^0.24.1"
mypy = "^1.3.0"
pylint = "^2.17.4"
pytest = "^7.3.1"
pytest-cov = "^4.1.0"
pre-commit = "^3.3.2"
dill = "^0.3.6"
pytest-rerunfailures = "^11.1.2"
num2tex = "^0.8"
mike = "^1.1.2"
pydocstyle = "^6.3.0"
[tool.poetry.extras]
examples = ["notebook", "matplotlib"]
[tool.poetry.group.dev.dependencies]
configspace = "^0.6.0"
[tool.pytest.ini_options]
filterwarnings = ["error::DeprecationWarning", "error::PendingDeprecationWarning"]
markers = ["integration_test: Execute API calls."]
addopts = "-m 'not integration_test'"
[tool.mypy]
ignore_missing_imports = true
no_strict_optional = true
exclude = 'site/generate_references.py'
[tool.black]
line-length = 88
[tool.isort]
profile = "black"
[tool.pylint.format]
max-line-length = 88
[tool.pylint.messages_control]
extension-pkg-whitelist = ["pydantic", "numpy", "scipy"]
disable = [
# Switched off to be less aggressive
"missing-module-docstring",
"missing-class-docstring",
"missing-function-docstring",
"invalid-name",
"logging-not-lazy",
"logging-format-interpolation",
"logging-fstring-interpolation",
"duplicate-code",
"too-many-instance-attributes",
"too-many-arguments",
"too-few-public-methods",
"too-many-locals",
"protected-access"
]
[tool.pydocstyle]
convention = "google"
add-ignore = "D105"
match = '(?!test_|__init__).*\.py'
match-dir = '[^\tests].*'
[tool.coverage.run]
source = ['parameterspace']
relative_files = true
branch = true
[tool.coverage.report]
exclude_lines = [
# Have to re-enable the standard pragma
"pragma: no cover",
# Don't complain about missing debug-only code:
"def __repr__",
"if self\\.debug",
# Don't complain if tests don't hit defensive assertion code:
"raise AssertionError",
"raise NotImplementedError",
# Don't complain if non-runnable code isn't run:
"if 0:",
"if __name__ == .__main__.:"
]
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"