Skip to content

Commit 1830acd

Browse files
committed
pyproject.toml: require pytest 9 for self tests, switch to native toml config, enable strict mode
Just some things from the pytest 9 release: https://docs.pytest.org/en/stable/changelog.html#pytest-9-0-0-2025-11-05
1 parent f19da08 commit 1830acd

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ docs = [
4949
testing = [
5050
"Django",
5151
"django-configurations>=2.0",
52+
"pytest>=9",
5253
]
5354
coverage = [
5455
"coverage[toml]",
@@ -84,13 +85,12 @@ pytest_django = ["py.typed"]
8485
[tool.setuptools_scm]
8586
write_to = "pytest_django/_version.py"
8687

87-
[tool.pytest.ini_options]
88+
[tool.pytest]
8889
addopts = [
89-
# Error on using unregistered marker.
90-
"--strict-markers",
9190
# Show extra test summary info for everything.
9291
"-ra",
9392
]
93+
strict = true
9494
pythonpath = ["."]
9595
DJANGO_SETTINGS_MODULE = "pytest_django_test.settings_sqlite_file"
9696
testpaths = ["tests"]

0 commit comments

Comments
 (0)