Skip to content

Commit 21eba77

Browse files
authored
Upgrade pytest configuration (#723)
Use the new proper TOML support [added in pytest 9](https://docs.pytest.org/en/stable/changelog.html#pytest-9-0-0-2025-11-05).
1 parent c412c8d commit 21eba77

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

pyproject.toml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ test = [
5050
"faker",
5151
"model-bakery>=1.13",
5252
"numpy",
53-
"pytest",
53+
"pytest>=9",
5454
"pytest-xdist",
5555
]
5656

@@ -107,11 +107,7 @@ warn_unreachable = true
107107
overrides = [ { module = "tests.*", allow_untyped_defs = true } ]
108108

109109
[tool.pytest]
110-
ini_options.addopts = """\
111-
--strict-config
112-
--strict-markers
113-
"""
114-
ini_options.xfail_strict = true
110+
strict = true
115111

116112
[tool.coverage]
117113
run.branch = true

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)