From 5a531a3d15d642bbf5ed1f10d4ff0294149d45c7 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Mon, 20 Apr 2026 14:20:58 +0100 Subject: [PATCH] Upgrade pytest configuration 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). --- pyproject.toml | 8 ++------ uv.lock | 2 +- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index e866e4f..068bfb5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -50,7 +50,7 @@ test = [ "faker", "model-bakery>=1.13", "numpy", - "pytest", + "pytest>=9", "pytest-xdist", ] @@ -107,11 +107,7 @@ warn_unreachable = true overrides = [ { module = "tests.*", allow_untyped_defs = true } ] [tool.pytest] -ini_options.addopts = """\ - --strict-config - --strict-markers - """ -ini_options.xfail_strict = true +strict = true [tool.coverage] run.branch = true diff --git a/uv.lock b/uv.lock index 5a0abd7..4b2abdb 100644 --- a/uv.lock +++ b/uv.lock @@ -471,7 +471,7 @@ test = [ { name = "faker" }, { name = "model-bakery", specifier = ">=1.13" }, { name = "numpy" }, - { name = "pytest" }, + { name = "pytest", specifier = ">=9" }, { name = "pytest-xdist" }, ]