Skip to content

Remove the stray [tool.pytest] section from pyproject.toml - #13

Open
djGLiTCH wants to merge 1 commit into
OpenStickCommunity:mainfrom
djGLiTCH:20260812-pytest-config
Open

Remove the stray [tool.pytest] section from pyproject.toml#13
djGLiTCH wants to merge 1 commit into
OpenStickCommunity:mainfrom
djGLiTCH:20260812-pytest-config

Conversation

@djGLiTCH

Copy link
Copy Markdown

pyproject.toml carries both [tool.pytest] and [tool.pytest.ini_options].
pytest only reads the latter from pyproject.toml, so the former does nothing -
its python_files patterns have never applied and collection has always used
the defaults. Every test file is named test_*.py, which those defaults already
match, so nothing relied on it and it can go rather than being migrated across.

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 the block will
need to be removed if the project decides to upgrade past 9.0.

pytest 8.3.4 pytest 9.1.1
before 10 failed, 83 passed cannot start
after 10 failed, 83 passed 10 failed, 83 passed

Those 10 failures already existed.

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant