From e81361b454a44395b6b8da69b848505a9f661abf Mon Sep 17 00:00:00 2001 From: Stephen Kent Date: Tue, 13 Jan 2026 20:19:13 -0800 Subject: [PATCH] Migrate pytest config in `pyproject.toml` to modern format --- {{cookiecutter.project_name}}/pyproject.toml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/{{cookiecutter.project_name}}/pyproject.toml b/{{cookiecutter.project_name}}/pyproject.toml index 97372eb..e2a3f69 100644 --- a/{{cookiecutter.project_name}}/pyproject.toml +++ b/{{cookiecutter.project_name}}/pyproject.toml @@ -81,14 +81,15 @@ warn_return_any = true show_error_codes = true warn_unused_ignores = true -[tool.pytest.ini_options] -addopts = """\ - --cov \ - --cov-append \ - --cov-report term \ - --cov-report xml:.pytest_coverage.xml \ - --junitxml=.pytest_results.xml \ -""" +[tool.pytest] +testpaths = ['tests'] +addopts = [ + "--cov", + "--cov-append", + "--cov-report=term", + "--cov-report=xml:.pytest_coverage.xml", + "--junitxml=.pytest_results.xml", +] [tool.ruff] target-version = "py310"