Skip to content

Commit 7763499

Browse files
Improve pytest configuration (#751)
1 parent 606cc69 commit 7763499

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

pyproject.toml

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,24 @@
11
[tool.pytest.ini_options]
2+
minversion = "8.2"
23
doctest_optionflags = "NUMBER NORMALIZE_WHITESPACE ELLIPSIS"
4+
xfail_strict = true
35
filterwarnings = [
4-
"error",
5-
"ignore:FigureCanvasAgg is non-interactive:UserWarning",
6-
"ignore:datetime.datetime.utcfromtimestamp:DeprecationWarning",
7-
"ignore:'scipy.sparse.linalg.cg' keyword argument:DeprecationWarning",
6+
"error",
7+
"ignore:FigureCanvasAgg is non-interactive:UserWarning",
8+
"ignore:datetime.datetime.utcfromtimestamp:DeprecationWarning",
9+
"ignore:'scipy.sparse.linalg.cg' keyword argument:DeprecationWarning",
810
]
9-
addopts = "--ignore=advanced/advanced_numpy/examples/myobject_test.py --ignore=advanced/interfacing_with_c/ctypes_numpy/test_cos_doubles.py --ignore=advanced/interfacing_with_c/cython_numpy/test_cos_doubles.py --ignore=advanced/interfacing_with_c/numpy_c_api/test_cos_module_np.py --ignore=advanced/interfacing_with_c/numpy_shared/test_cos_doubles.py --ignore=advanced/interfacing_with_c/swig_numpy/test_cos_doubles.py --ignore=intro/scipy/examples/plot_t_test.py"
11+
addopts = [
12+
"-ra", "--showlocals", "--strict-markers", "--strict-config",
13+
"--ignore=advanced/advanced_numpy/examples/myobject_test.py",
14+
"--ignore=advanced/interfacing_with_c/ctypes_numpy/test_cos_doubles.py",
15+
"--ignore=advanced/interfacing_with_c/cython_numpy/test_cos_doubles.py",
16+
"--ignore=advanced/interfacing_with_c/numpy_c_api/test_cos_module_np.py",
17+
"--ignore=advanced/interfacing_with_c/numpy_shared/test_cos_doubles.py",
18+
"--ignore=advanced/interfacing_with_c/swig_numpy/test_cos_doubles.py",
19+
"--ignore=intro/scipy/examples/plot_t_test.py",
20+
]
21+
log_cli_level = "info"
1022

1123
[tool.ruff]
1224
target-version = "py310"

0 commit comments

Comments
 (0)