Skip to content

Commit a3698ae

Browse files
authored
Upgrade pytest configuration (#695)
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 77fd471 commit a3698ae

2 files changed

Lines changed: 4 additions & 8 deletions

File tree

pyproject.toml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ urls.Repository = "https://github.com/evansd/whitenoise"
5353
test = [
5454
"coverage[toml]",
5555
"django",
56-
"pytest",
56+
"pytest>=9",
5757
"pytest-randomly",
5858
"requests",
5959
]
@@ -122,11 +122,7 @@ lint.isort.required-imports = [ "from __future__ import annotations" ]
122122
max_supported_python = "3.14"
123123

124124
[tool.pytest]
125-
ini_options.addopts = """\
126-
--strict-config
127-
--strict-markers
128-
"""
129-
ini_options.xfail_strict = true
125+
strict = true
130126

131127
[tool.coverage]
132128
run.branch = true

uv.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)