-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
170 lines (150 loc) · 4.21 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
[build-system]
requires = ["setuptools>=45", "wheel", "setuptools_scm[toml]>=6.0"]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
write_to = "src/estimagic/_version.py"
[tool.ruff]
target-version = "py37"
fix = true
select = [
# pyflakes
"F",
# pycodestyle
"E",
"W",
# flake8-2020
"YTT",
# flake8-bugbear
"B",
# flake8-quotes
"Q",
# pylint
"PLE", "PLR", "PLW",
# misc lints
"PIE",
# tidy imports
"TID",
# implicit string concatenation
"ISC",
]
extend-ignore = [
# allow module import not at top of file, important for notebooks
"E402",
# do not assign a lambda expression, use a def
"E731",
# Too many arguments to function call
"PLR0913",
# Too many returns
"PLR0911",
# Too many branches
"PLR0912",
# Too many statements
"PLR0915",
# Magic number
"PLR2004",
# Consider `elif` instead of `else` then `if` to remove indentation level
"PLR5501",
# For calls to warnings.warn(): No explicit `stacklevel` keyword argument found
"B028",
]
[tool.ruff.per-file-ignores]
"docs/source/conf.py" = ["E501", "ERA001", "DTZ005"]
"src/estimagic/parameters/kernel_transformations.py" = ["ARG001", "N806"]
"docs/source/*" = ["B018"]
[tool.ruff.pydocstyle]
convention = "google"
[tool.nbqa.config]
black = "pyproject.toml"
[tool.nbqa.mutate]
black = 1
[tool.pytask]
infer_latex_dependencies = true
[tool.pytest.ini_options]
filterwarnings = [
"ignore:Using or importing the ABCs from 'collections'",
"ignore:the imp module is deprecated",
"ignore:Method .ptp is deprecated and will be removed in a future version. Use numpy.ptp instead.",
"ignore:In a future version of pandas all arguments of concat except for the argument 'objs' will be keyword-only",
"ignore:Please use `MemoizeJac` from the `scipy.optimize` namespace",
"ignore:`scipy.optimize.optimize.MemoizeJac` is deprecated",
"ignore:Some algorithms did not converge. Their walltime has been set to a very high value instead of infinity because Timedeltas do notsupport infinite values",
"ignore:In a future version, the Index constructor will not infer numeric dtypes when passed object-dtype sequences",
"ignore:distutils Version classes are deprecated. Use packaging.version instead",
"ignore:Standard matrix inversion failed due to LinAlgError",
"ignore:delta_grad == 0.0",
"ignore:Widget._active_widgets is deprecated",
"ignore:Widget._widget_types is deprecated",
"ignore:Widget.widget_types is deprecated",
"ignore:Widget.widgets is deprecated",
"ignore:Parallelization together with",
"ignore:Conversion of an array with ndim > 0 to a scalar is deprecated",
]
addopts = ["--doctest-modules"]
markers = [
"wip: Tests that are work-in-progress.",
"slow: Tests that take a long time to run and are skipped in continuous integration.",
"jax: Tests that require jax to be installed and are skipped on non-Linux systems.",
]
[tool.yamlfix]
line_length = 88
sequence_style = "block_style"
none_representation = "null"
[tool.mypy]
files = ["src", "tests"]
check_untyped_defs = true
disallow_any_generics = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
[[tool.mypy.overrides]]
module = "tests.*"
disallow_untyped_defs = false
ignore_errors = true
[[tool.mypy.overrides]]
module = [
"pybaum",
"scipy",
"scipy.linalg",
"scipy.linalg.lapack",
"scipy.stats",
"scipy.optimize",
"scipy.ndimage",
"scipy.optimize._trustregion_exact",
"plotly",
"plotly.graph_objects",
"plotly.express",
"plotly.subplots",
"cyipopt",
"nlopt",
"bokeh",
"bokeh.layouts",
"bokeh.models",
"bokeh.plotting",
"bokeh.application",
"bokeh.application.handlers",
"bokeh.application.handlers.function",
"bokeh.server",
"bokeh.server.server",
"bokeh.command",
"bokeh.command.util",
"fides",
"simopt",
"simopt.base",
"simopt.experiment_base",
"petsc4py",
"tranquilo",
"tranquilo.tranquilo",
"dfols",
"pybobyqa",
"pygmo",
"jax",
"joblib",
"cloudpickle",
"numba",
"pathos",
"pathos.pools",
"estimagic._version",
]
ignore_missing_imports = true