From da23ae9732b56d18b6b11dce7761f01ef7395f34 Mon Sep 17 00:00:00 2001 From: Keith Edmunds Date: Mon, 23 Oct 2023 12:34:05 +0100 Subject: [PATCH] Move pytest configuration to pyproject.toml --- pyproject.toml | 4 ++++ pytest.ini | 2 -- 2 files changed, 4 insertions(+), 2 deletions(-) delete mode 100644 pytest.ini diff --git a/pyproject.toml b/pyproject.toml index 9c86b8f..e50a727 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -52,6 +52,10 @@ build-backend = "poetry.core.masonry.api" # mypy_path = "/home/kae/.cache/pypoetry/virtualenvs/musicmuster-oWgGw1IG-py3.9:/home/kae/git/musicmuster/app" mypy_path = "/home/kae/git/musicmuster/app" +[tool.pytest.ini_options] +addopt = "--exitfirst --showlocals --capture=no" +pythonpath = [".", "app"] + [tool.vulture] exclude = ["migrations", "app/ui", "archive"] paths = ["app"] diff --git a/pytest.ini b/pytest.ini deleted file mode 100644 index 1ae6aed..0000000 --- a/pytest.ini +++ /dev/null @@ -1,2 +0,0 @@ -[pytest] -addopts = -xls