From ea09e5029ba3adefe5e3d7d79178f7d307c766e7 Mon Sep 17 00:00:00 2001 From: Uxio Fuentefria Date: Fri, 7 Jun 2024 16:10:33 +0200 Subject: [PATCH] Move more configuration to pyproject.toml --- pyproject.toml | 3 +++ setup.cfg | 4 ---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index b1090814c..2453b0f76 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -128,3 +128,6 @@ ignore_missing_imports = true warn_unused_ignores = true warn_redundant_casts = true warn_unused_configs = true + +[tool.pytest_env] +DJANGO_SETTINGS_MODULE = "config.settings.test" diff --git a/setup.cfg b/setup.cfg index 11c658e49..a391c7063 100644 --- a/setup.cfg +++ b/setup.cfg @@ -7,7 +7,3 @@ exclude = .tox,.git,*/migrations/*,*/static/CACHE/*,docs,node_modules,venv [pycodestyle] max-line-length = 120 exclude = .tox,.git,*/migrations/*,*/static/CACHE/*,docs,node_modules,venv - -[tool:pytest] -env = - DJANGO_SETTINGS_MODULE=config.settings.test