aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config/settings/local.py2
-rw-r--r--pyproject.toml9
2 files changed, 7 insertions, 4 deletions
diff --git a/config/settings/local.py b/config/settings/local.py
index afcdb3f..155b219 100644
--- a/config/settings/local.py
+++ b/config/settings/local.py
@@ -2,6 +2,8 @@
from .base import * # noqa: F403
from .base import env
+DATABASE_URL = env.read_env("DATABASE_URL", "postgres://postgres:postgres@localhost:5432/postgres")
+
# GENERAL
# ------------------------------------------------------------------------------
# https://docs.djangoproject.com/en/dev/ref/settings/#debug
diff --git a/pyproject.toml b/pyproject.toml
index 64194b6..cb27ff3 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,12 +1,13 @@
# ==== pytest ====
[tool.pytest.ini_options]
minversion = "6.0"
-#addopts = "--disable-pytest-warnings -q -rP --ds=config.settings.test --reuse-db --import-mode=importlib"
-addopts = "--disable-pytest-warnings -q --tb=short -s --ds=config.settings.test --reuse-db --import-mode=importlib"
+#addopts = "--disable-pytest-warnings -q -rP --ds=config.settings.local --reuse-db --import-mode=importlib"
+addopts = "--disable-pytest-warnings -q --tb=short -s --ds=config.settings.local --reuse-db --import-mode=importlib"
python_files = [
"tests.py",
"test_*.py",
]
+DJANGO_SETTINGS_MODULE = "config.settings.local"
# ==== Coverage ====
[tool.coverage.run]
@@ -32,7 +33,7 @@ module = "*.migrations.*"
ignore_errors = true
[tool.django-stubs]
-django_settings_module = "config.settings.test"
+django_settings_module = "config.settings.local"
# ==== djLint ====
[tool.djlint]
@@ -84,7 +85,7 @@ exclude = [
"staticfiles/*"
]
# Same as Django: https://github.com/cookiecutter/cookiecutter-django/issues/4792.
-line-length = 98
+line-length = 140
indent-width = 4
target-version = "py312"