From ceda770f43c0e21391f7058c14e7687677d3ac17 Mon Sep 17 00:00:00 2001 From: Adam Dangoor Date: Sat, 21 Feb 2026 10:09:23 +0000 Subject: [PATCH 1/3] Use native pytest TOML configuration Remove `ini_options.` prefix from pytest configuration keys under `[tool.pytest]`, using the native TOML configuration format supported since pytest 9.0. Co-Authored-By: Claude Opus 4.6 --- pyproject.toml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index df251f8d2..1075f81a1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -329,18 +329,18 @@ keep_full_version = true max_supported_python = "3.13" [tool.pytest] -ini_options.xfail_strict = true -ini_options.log_cli = true -ini_options.addopts = [ +xfail_strict = true +log_cli = true +addopts = [ "--strict-markers", ] -ini_options.markers = [ +markers = [ "requires_docker_build", ] # Options for pytest-retry. -ini_options.retries = 10 -ini_options.retry_delay = 10 -ini_options.cumulative_timing = false +retries = 10 +retry_delay = 10 +cumulative_timing = false [tool.coverage] run.branch = true From 29badc1345bdbcc19c13c8c4908c188a241e6592 Mon Sep 17 00:00:00 2001 From: Adam Dangoor Date: Sat, 21 Feb 2026 10:17:53 +0000 Subject: [PATCH 2/3] Quote pytest-retry options as strings The pytest-retry plugin registers its options as string type via `getini`, so native TOML integers/booleans cause a TypeError. Quote the values to maintain compatibility. Co-Authored-By: Claude Opus 4.6 --- pyproject.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 1075f81a1..65bb00ad3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -338,9 +338,9 @@ markers = [ "requires_docker_build", ] # Options for pytest-retry. -retries = 10 -retry_delay = 10 -cumulative_timing = false +retries = "10" +retry_delay = "10" +cumulative_timing = "false" [tool.coverage] run.branch = true From 222ae78aa5ff76d3770268466b7a208dece96dde Mon Sep 17 00:00:00 2001 From: Adam Dangoor Date: Sat, 21 Feb 2026 10:24:00 +0000 Subject: [PATCH 3/3] Keep cumulative_timing as native bool This option expects a bool, not a string. Co-Authored-By: Claude Opus 4.6 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 65bb00ad3..22a8ff04a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -340,7 +340,7 @@ markers = [ # Options for pytest-retry. retries = "10" retry_delay = "10" -cumulative_timing = "false" +cumulative_timing = false [tool.coverage] run.branch = true