-
Notifications
You must be signed in to change notification settings - Fork 72
Closed
Description
Issue
The PP301 check requires [tool.pytest.ini_options] in pyproject.toml, but pytest 9 introduced native TOML support under [tool.pytest] ([PR #13743](pytest-dev/pytest#13743)).
Using the new format causes false failure:
├── PP301 Has pytest in pyproject ❌
│ Must have a [tool.pytest.ini_options] configuration section in pyproject.toml.
├── PP302 Sets a minimum pytest to at least 6 [skipped]
├── PP303 Sets the test paths [skipped]
...
Expected
Checks should accept either:
[tool.pytest.ini_options](INI-compatibility mode, pytest 6+)[tool.pytest](native TOML, pytest 9+)
Note: Both tables cannot be used simultaneously per pytest documentation.
References
- [pytest 9.0 changelog](https://docs.pytest.org/en/stable/changelog.html#pytest-9-0-0-2024-12-21)
- [pytest configuration docs](https://docs.pytest.org/en/stable/reference/customize.html#pyproject-toml)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels