From f2643fa8953f53a01f14b6ce3ce5fc96051e5619 Mon Sep 17 00:00:00 2001 From: Jacob Simpson <28767380+djGLiTCH@users.noreply.github.com> Date: Wed, 12 Aug 2026 13:49:12 +1000 Subject: [PATCH] Remove the stray [tool.pytest] section from pyproject.toml pytest only reads [tool.pytest.ini_options] from pyproject.toml, so the [tool.pytest] block above it does nothing. Its python_files patterns have never applied, and collection has always used pytest's defaults. Every test file here is named test_*.py, which those defaults already match, so nothing relied on it. pytest 9 turns the duplicate into a hard error and refuses to start. The pinned pytest==8.3.4 in requirements-dev.txt keeps the suite working for now, but anyone testing against a newer pytest locally hits it today, and it will need to be removed if the project decides to upgrade past 9.0. Dropping the dead block changes nothing that runs today: the suite gives 10 failed, 83 passed before and after on 8.3.4, and the same on 9.1.1, which could not start at all before. Those 10 failures already existed. Signed-off-by: Jacob Simpson <28767380+djGLiTCH@users.noreply.github.com> --- pyproject.toml | 3 --- 1 file changed, 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index fda0f8d..7984ee1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -71,9 +71,6 @@ ignore_missing_imports = true module = "gp2040ce_bintools.gui" ignore_errors = true -[tool.pytest] -python_files = ["*_tests.py", "tests.py", "test_*.py"] - [tool.pytest.ini_options] log_cli = 0 log_cli_level = "WARNING"