From 091fdb873a3e8720a290a4ae292c77214a24a0ee Mon Sep 17 00:00:00 2001 From: Marcel Stimberg Date: Fri, 7 Feb 2025 15:19:51 +0100 Subject: [PATCH] Configure pytest to work with version_helper file --- pyproject.toml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 148f474..4667792 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -28,6 +28,7 @@ dynamic = ["version"] test = [ "pytest>=8.3.4", "pytest-xdist>=1.22.3", + "pdm-backend>=2.4.3", ] docs = [ "sphinx>=7", @@ -46,4 +47,10 @@ source = "scm" tag_filter = "v*" version_format = "src.version_helper:format_version" write_to = "QuantSI/_version.py" -write_template = "__version__ = '{}'" \ No newline at end of file +write_template = "__version__ = '{}'" + +[tool.pytest.ini_options] +addopts = "-ra" +testpaths = [ + "QuantSI/tests", +] \ No newline at end of file