[Pytest v9](https://github.com/pytest-dev/pytest/releases/tag/9.0.0) has been released with native pyproject.toml support https://github.com/NLeSC/python-template/blob/07e120e7fdeaf463ca44fdde238f1319a1e11035/template/pyproject.toml.jinja#L95-L96 Can now be written as ```toml [tool.pytest] testpaths = ["tests"] ``` As pytest v9 is a major version bump and new, we should take care that `pytest-*` packages like `pytest-cov` are compatible.
Activity
sverhoeven commentedon Nov 27, 2025
Possibly also change import mode from prepend to importlib, see https://docs.pytest.org/en/stable/explanation/goodpractices.html#choosing-an-import-mode.
This allows to have test files with same file name like
Pytest advises this for new projects.