From 0801c841c3c569d00f4c3c7c9f13c9d4de8b7520 Mon Sep 17 00:00:00 2001 From: Jonas Dittrich <58814480+Kakadus@users.noreply.github.com> Date: Mon, 13 May 2024 18:16:02 +0200 Subject: [PATCH] enable django_stubs_ext in production --- evap/settings.py | 2 ++ requirements-dev.txt | 2 +- requirements.txt | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/evap/settings.py b/evap/settings.py index 2a18223074..ddfb2a3974 100644 --- a/evap/settings.py +++ b/evap/settings.py @@ -13,10 +13,12 @@ import sys from typing import Any +import django_stubs_ext from django.contrib.staticfiles.storage import ManifestStaticFilesStorage BASE_DIR = os.path.dirname(os.path.realpath(__file__)) +django_stubs_ext.monkeypatch() ### Debugging diff --git a/requirements-dev.txt b/requirements-dev.txt index b7ad820a3b..8e2a0804da 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -2,7 +2,7 @@ black~=24.4.0 coverage[toml] django-debug-toolbar~=4.0 -django-stubs==5.0.0 +django-stubs==* django-webtest~=1.9.10 isort~=5.13.1 model-bakery~=1.18.0 diff --git a/requirements.txt b/requirements.txt index 6937a16be2..914c3dacaa 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,4 @@ +django-stubs-ext==5.0.0 django-extensions==3.2.3 django-fsm==3.0.0 django~=5.0