-
Notifications
You must be signed in to change notification settings - Fork 79
Expand file tree
/
Copy pathpytest.ini
More file actions
50 lines (42 loc) · 2.41 KB
/
pytest.ini
File metadata and controls
50 lines (42 loc) · 2.41 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
[pytest]
strict = true
markers =
filterwarnings: Apply warning filters to a test
addopts =
--doctest-modules
--ignore=examples
--ignore=docs
; Avoids import errors due to optional dependencies
--doctest-ignore-import-errors
testpaths =
baybe
tests
filterwarnings =
; Treat warnings as errors
error
; Temporary ignores
; -----------------
; Torch JIT deprecation warning triggered during linear_operator import
ignore:.*torch.jit.script.*:DeprecationWarning
; Invalid escape sequence in pyro.ops.stats docstring
; Fixed upstream but unreleased: https://github.com/pyro-ppl/pyro/issues/3450
ignore:.*invalid escape sequence.*:SyntaxWarning
ignore:.*invalid escape sequence.*:DeprecationWarning
; https://github.com/meta-pytorch/botorch/pull/3279
ignore:chol argument to CholLinearOperator should be a TriangularLinearOperator.*:DeprecationWarning:linear_operator.operators.chol_linear_operator
; https://github.com/shap/shap/issues/4280 (fixed in shap>=0.51.0, but only available for Python 3.11+)
ignore:Conversion of an array with ndim > 0 to a scalar is deprecated:DeprecationWarning:shap.explainers.other._maple
; https://github.com/cornellius-gp/linear_operator/issues/131
ignore:Sparse invariant checks are implicitly disabled.*:UserWarning:linear_operator
; Numerics/optimization
; ---------------------
ignore:.*add(ed|ing) jitter.*:linear_operator.utils.warnings.NumericalWarning
ignore:.*Negative variance values detected.*:linear_operator.utils.warnings.NumericalWarning
ignore:Optimization failed.*:RuntimeWarning:botorch.optim.optimize
; Note: File format instead of module format needed due to BoTorch reraising using `warn_explicit` without `module` argument
ignore:`scipy_minimize` terminated with status .*:botorch.exceptions.warnings.OptimizationWarning:.*botorch/fit
; BoTorch warning recommending to switch to log-versions of acquisition functions
ignore:.*has known numerical issues that lead to suboptimal optimization performance.*:botorch.exceptions.warnings.NumericsWarning:botorch.acquisition
; BoTorch warning when all raw sample acquisition values are identical; fires
; non-deterministically in heavily constrained spaces regardless of data volume
ignore:All acquisition values for raw samples points are the same.*:botorch.exceptions.warnings.BadInitialCandidatesWarning