From 82236f1712bbf176556c219c11ed14ce9c65d1fe Mon Sep 17 00:00:00 2001 From: Neda Moeini <neda.moeini@geant.org> Date: Thu, 27 Feb 2025 16:35:27 +0100 Subject: [PATCH] Move pytest configuration to pyproject.toml --- pyproject.toml | 6 ++++++ pytest.ini | 4 ---- 2 files changed, 6 insertions(+), 4 deletions(-) delete mode 100644 pytest.ini diff --git a/pyproject.toml b/pyproject.toml index 491a227..981838d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -37,4 +37,10 @@ line-length = 120 [tool.ruff.lint.flake8-tidy-imports] ban-relative-imports = "all" +[tool.ruff.lint.per-file-ignores] +"test/*" = ["S101", "ARG001",] +[tool.pytest.ini_options] +DJANGO_SETTINGS_MODULE = "test.settings" +django_find_project = false +python_files = ["tests.py", "test_*.py", "*_tests.py"] \ No newline at end of file diff --git a/pytest.ini b/pytest.ini deleted file mode 100644 index 8872a16..0000000 --- a/pytest.ini +++ /dev/null @@ -1,4 +0,0 @@ -[pytest] -DJANGO_SETTINGS_MODULE = test.settings -django_find_project = false -python_files = tests.py test_*.py *_tests.py \ No newline at end of file -- GitLab