-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpytest.ini
61 lines (57 loc) · 2.41 KB
/
pytest.ini
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
## pytest.ini
## Pytest Writing and running tests quickly.
[pytest]
## Directories to be ignored during test discovery
norecursedirs =
.ipynb_checkpoints
auto_building_tools
docs
galleries examples
## Additional command-line options for pytest
## https://docs.pytest.org/en/stable/how-to/output.html#modifying-python-traceback-printing
addopts =
## show local variables (shortcut)
-l
## shorter traceback format for easier reading
--tb=short
# Disable warnings for cleaner output
--disable-warnings
# Stop testing after the first failure
--maxfail=1
# Enable verbose output
-v
## Use JUnit XML format for test results
junit_family = xunit2
## Configure test run settings
filterwarnings =
# Treat these warnings as errors
error
# Always show this specific warning from scipy
always::scipy._lib._testutils.FPUModeChangeWarning
# Ignore deprecation warnings from IPython
ignore:.*deprecated and ignored since IPython.*:DeprecationWarning
# Show LAPACK bug warning only once
once:.*LAPACK bug 0038.*:RuntimeWarning
# Ignore import warnings related to module spec
ignore:can't resolve package from __spec__ or __package__, falling back on __name__ and __path__:ImportWarning
# Ignore specific pytest configuration warnings
ignore:assertions not in test modules or plugins:pytest.PytestConfigWarning
ignore:'environmentfilter' is renamed to 'pass_environment'
ignore:'contextfunction' is renamed to 'pass_context'
# Ignore deprecation warnings related to distutils
ignore:.*The distutils.* is deprecated.*:DeprecationWarning
ignore:\s*.*numpy.distutils.*:DeprecationWarning
ignore:.*`numpy.core` has been made officially private.*:DeprecationWarning
ignore:.*In the future `np.long` will be defined as.*:FutureWarning
# Ignore specific warnings from CuPy
ignore:.*JAX is multithreaded.*:RuntimeWarning
ignore:.*The 2023.12 version of the array API specification is still preliminary.*:UserWarning
ignore:^Using the slower implmentation::cupy
ignore:Using the slower implementation::cupy
ignore:Jitify is performing a one-time only warm-up::cupy
# Ignore specific deprecation warnings from scikitplot
ignore:.*deprecated.*:DeprecationWarning
ignore:.*deprecated.*:UserWarning
ignore::FutureWarning
# Ignore convergence warnings from sklearn
ignore::sklearn.exceptions.ConvergenceWarning