From a01aa0b24e3c06b5fd27006c7e13804f8b19d8b5 Mon Sep 17 00:00:00 2001 From: Sven Eberth Date: Thu, 13 Feb 2025 01:24:38 +0100 Subject: [PATCH] chore: Enforce config strict mode The new config type has now been established in the core for two versions. In order to force all projects that are still running in compatibility mode to change over, I think it is a good opportunity to activate strictmode by default for 3.8. If necessary, it can of course still be explicitly deactivated. --- src/viur/core/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/viur/core/config.py b/src/viur/core/config.py index 230f6581b..6945735fc 100644 --- a/src/viur/core/config.py +++ b/src/viur/core/config.py @@ -997,5 +997,5 @@ def _resolve_mapping(self, key: str) -> str: conf = Conf( - strict_mode=os.getenv("VIUR_CORE_CONFIG_STRICT_MODE", "").lower() == "true", + strict_mode=os.getenv("VIUR_CORE_CONFIG_STRICT_MODE", "").lower() != "false", )