Skip to content

✨ feat(config): support [tool.pytest] in pyproject.toml#189

Merged
gaborbernat merged 1 commit into
pytest-dev:mainfrom
gaborbernat:183
Feb 11, 2026
Merged

✨ feat(config): support [tool.pytest] in pyproject.toml#189
gaborbernat merged 1 commit into
pytest-dev:mainfrom
gaborbernat:183

Conversation

@gaborbernat
Copy link
Copy Markdown
Collaborator

@gaborbernat gaborbernat commented Feb 11, 2026

Pytest 9.0 introduced [tool.pytest] as the native TOML alternative to [tool.pytest.ini_options] in pyproject.toml. While pytest-env already handled this transparently through getini(), the documentation only showed the old [tool.pytest.ini_options] form, leaving users unaware they could use the cleaner syntax.

This bumps the minimum pytest requirement to >=9 and updates the README to show [tool.pytest] as the documented approach. Since pytest 9.0 is now the baseline, the conditional note about pytest.toml/.pytest.toml requiring 9.0+ is also removed.

Fixes #183

@gaborbernat gaborbernat changed the title Support [tool.pytest] table in pyproject.toml ✨ feat(config): support [tool.pytest] in pyproject.toml Feb 11, 2026
Pytest 9.0 introduced [tool.pytest] as a native TOML alternative to
[tool.pytest.ini_options]. Since this already works transparently
through getini(), this bumps the minimum pytest to >=9, documents the
new table in README, and adds a test to prevent regressions.

Closes pytest-dev#183
@gaborbernat gaborbernat merged commit 79af961 into pytest-dev:main Feb 11, 2026
9 checks passed
@gaborbernat gaborbernat deleted the 183 branch February 11, 2026 16:00
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.

Support pytest.tool in pyproject.toml

1 participant