Skip to content

Commit 502e129

Browse files
authored
Merge pull request #122 from smkent/pytest
Migrate pytest config in `pyproject.toml` to modern format
2 parents b7b8e41 + e81361b commit 502e129

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

{{cookiecutter.project_name}}/pyproject.toml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,15 @@ warn_return_any = true
8181
show_error_codes = true
8282
warn_unused_ignores = true
8383

84-
[tool.pytest.ini_options]
85-
addopts = """\
86-
--cov \
87-
--cov-append \
88-
--cov-report term \
89-
--cov-report xml:.pytest_coverage.xml \
90-
--junitxml=.pytest_results.xml \
91-
"""
84+
[tool.pytest]
85+
testpaths = ['tests']
86+
addopts = [
87+
"--cov",
88+
"--cov-append",
89+
"--cov-report=term",
90+
"--cov-report=xml:.pytest_coverage.xml",
91+
"--junitxml=.pytest_results.xml",
92+
]
9293

9394
[tool.ruff]
9495
target-version = "py310"

0 commit comments

Comments
 (0)