Skip to content

Commit 9690a55

Browse files
update pytest config for pytest 9 (#1140)
Co-authored-by: Selman Özleyen <32667648+selmanozleyen@users.noreply.github.com>
1 parent 83289e1 commit 9690a55

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

pyproject.toml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -225,18 +225,22 @@ lint.flake8-tidy-imports.ban-relative-imports = "all"
225225
lint.isort.required-imports = [ "from __future__ import annotations" ]
226226

227227
[tool.pytest]
228-
ini_options.filterwarnings = [
228+
strict = true
229+
filterwarnings = [
229230
"error::numba.NumbaPerformanceWarning",
230231
"ignore::UserWarning",
231232
"ignore::anndata.OldFormatWarning",
232233
"ignore:.*pkg_resources:DeprecationWarning",
233234
]
234-
ini_options.python_files = "test_*.py"
235-
ini_options.testpaths = [ "tests/" ]
236-
ini_options.xfail_strict = true
237-
ini_options.addopts = [
235+
python_files = [ "test_*.py" ]
236+
testpaths = [ "tests/" ]
237+
addopts = [
238238
"--ignore=docs",
239239
]
240+
markers = [
241+
"internet: tests that require internet",
242+
"gpu: tests that require GPU",
243+
]
240244

241245
[tool.coverage]
242246
run.branch = true

0 commit comments

Comments
 (0)