From e74e3c005d35b56000f8586a4075a70d12508a4c Mon Sep 17 00:00:00 2001 From: Manuel Sommer Date: Sun, 5 Oct 2025 22:45:27 +0200 Subject: [PATCH 1/5] :arrow_up: Bump ruff from 0.13.2 to 0.13.3 --- dojo/apps.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/dojo/apps.py b/dojo/apps.py index f47eb5184f2..6b833bf404c 100644 --- a/dojo/apps.py +++ b/dojo/apps.py @@ -72,20 +72,6 @@ def ready(self): # Load any signals here that will be ready for runtime # Importing the signals file is good enough if using the reciever decorator - import dojo.announcement.signals # noqa: PLC0415 raised: AppRegistryNotReady - import dojo.benchmark.signals # noqa: PLC0415 raised: AppRegistryNotReady - import dojo.cred.signals # noqa: PLC0415 raised: AppRegistryNotReady - import dojo.endpoint.signals # noqa: PLC0415 raised: AppRegistryNotReady - import dojo.engagement.signals # noqa: PLC0415 raised: AppRegistryNotReady - import dojo.file_uploads.signals # noqa: PLC0415 raised: AppRegistryNotReady - import dojo.finding_group.signals # noqa: PLC0415 raised: AppRegistryNotReady - import dojo.notes.signals # noqa: PLC0415 raised: AppRegistryNotReady - import dojo.product.signals # noqa: PLC0415 raised: AppRegistryNotReady - import dojo.product_type.signals # noqa: PLC0415 raised: AppRegistryNotReady - import dojo.risk_acceptance.signals # noqa: PLC0415 raised: AppRegistryNotReady - import dojo.sla_config.helpers # noqa: PLC0415 raised: AppRegistryNotReady - import dojo.tags_signals # noqa: PLC0415 raised: AppRegistryNotReady - import dojo.test.signals # noqa: PLC0415 raised: AppRegistryNotReady import dojo.tool_product.signals # noqa: F401,PLC0415 raised: AppRegistryNotReady # Configure audit system after all models are loaded From 1d4e54dde61c5e217620da8cce9c3f4eefa99a38 Mon Sep 17 00:00:00 2001 From: Manuel Sommer Date: Sun, 5 Oct 2025 22:46:23 +0200 Subject: [PATCH 2/5] bump --- requirements-lint.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements-lint.txt b/requirements-lint.txt index 6a0ba23ce92..994f517a926 100644 --- a/requirements-lint.txt +++ b/requirements-lint.txt @@ -1 +1 @@ -ruff==0.13.2 \ No newline at end of file +ruff==0.13.3 \ No newline at end of file From d045759cac8305693e939c6e57f50a6411f6e501 Mon Sep 17 00:00:00 2001 From: Manuel Sommer Date: Mon, 6 Oct 2025 07:51:55 +0200 Subject: [PATCH 3/5] fix --- dojo/apps.py | 16 +++++++++++++++- dojo/settings/settings.dist.py | 4 ++-- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/dojo/apps.py b/dojo/apps.py index 6b833bf404c..f1b2769f760 100644 --- a/dojo/apps.py +++ b/dojo/apps.py @@ -72,7 +72,21 @@ def ready(self): # Load any signals here that will be ready for runtime # Importing the signals file is good enough if using the reciever decorator - import dojo.tool_product.signals # noqa: F401,PLC0415 raised: AppRegistryNotReady + import dojo.announcement.signals # noqa: PLC0415, F401 raised: AppRegistryNotReady + import dojo.benchmark.signals # noqa: PLC0415, F401 raised: AppRegistryNotReady + import dojo.cred.signals # noqa: PLC0415, F401 raised: AppRegistryNotReady + import dojo.endpoint.signals # noqa: PLC0415, F401 raised: AppRegistryNotReady + import dojo.engagement.signals # noqa: PLC0415, F401 raised: AppRegistryNotReady + import dojo.file_uploads.signals # noqa: PLC0415, F401 raised: AppRegistryNotReady + import dojo.finding_group.signals # noqa: PLC0415, F401 raised: AppRegistryNotReady + import dojo.notes.signals # noqa: PLC0415, F401 raised: AppRegistryNotReady + import dojo.product.signals # noqa: PLC0415, F401 raised: AppRegistryNotReady + import dojo.product_type.signals # noqa: PLC0415, F401 raised: AppRegistryNotReady + import dojo.risk_acceptance.signals # noqa: PLC0415, F401 raised: AppRegistryNotReady + import dojo.sla_config.helpers # noqa: PLC0415, F401 raised: AppRegistryNotReady + import dojo.tags_signals # noqa: PLC0415, F401 raised: AppRegistryNotReady + import dojo.test.signals # noqa: PLC0415, F401 raised: AppRegistryNotReady + import dojo.tool_product.signals # noqa: PLC0415, F401 raised: AppRegistryNotReady # Configure audit system after all models are loaded # This must be done in ready() to avoid "Models aren't loaded yet" errors diff --git a/dojo/settings/settings.dist.py b/dojo/settings/settings.dist.py index 5b4713a9c43..44017e8daa9 100644 --- a/dojo/settings/settings.dist.py +++ b/dojo/settings/settings.dist.py @@ -30,7 +30,7 @@ # Set casting and default values DD_SITE_URL=(str, "http://localhost:8080"), DD_DEBUG=(bool, False), - DD_DJANGO_DEBUG_TOOLBAR_ENABLED=(bool, False), + DD_DJANGO_DEBUG_TOOLBAR_ENABLED=(bool, True), # django-auditlog imports django-jsonfield-backport raises a warning that can be ignored, # see https://github.com/laymonage/django-jsonfield-backport # debug_toolbar.E001 is raised when running tests in dev mode via run-unittests.sh @@ -105,7 +105,7 @@ DD_DATABASE_PASSWORD=(str, "defectdojo"), DD_DATABASE_PORT=(int, 3306), DD_DATABASE_USER=(str, "defectdojo"), - DD_SECRET_KEY=(str, ""), + DD_SECRET_KEY=(str, "test"), DD_CREDENTIAL_AES_256_KEY=(str, "."), DD_DATA_UPLOAD_MAX_MEMORY_SIZE=(int, 8388608), # Max post size set to 8mb DD_FORGOT_PASSWORD=(bool, True), # do we show link "I forgot my password" on login screen From f0762bc4c64f0cf77c7b3f670cfd75b4e2b7c04f Mon Sep 17 00:00:00 2001 From: manuelsommer <47991713+manuel-sommer@users.noreply.github.com> Date: Mon, 6 Oct 2025 11:47:06 +0200 Subject: [PATCH 4/5] Update settings.dist.py --- dojo/settings/settings.dist.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dojo/settings/settings.dist.py b/dojo/settings/settings.dist.py index 44017e8daa9..5b4713a9c43 100644 --- a/dojo/settings/settings.dist.py +++ b/dojo/settings/settings.dist.py @@ -30,7 +30,7 @@ # Set casting and default values DD_SITE_URL=(str, "http://localhost:8080"), DD_DEBUG=(bool, False), - DD_DJANGO_DEBUG_TOOLBAR_ENABLED=(bool, True), + DD_DJANGO_DEBUG_TOOLBAR_ENABLED=(bool, False), # django-auditlog imports django-jsonfield-backport raises a warning that can be ignored, # see https://github.com/laymonage/django-jsonfield-backport # debug_toolbar.E001 is raised when running tests in dev mode via run-unittests.sh @@ -105,7 +105,7 @@ DD_DATABASE_PASSWORD=(str, "defectdojo"), DD_DATABASE_PORT=(int, 3306), DD_DATABASE_USER=(str, "defectdojo"), - DD_SECRET_KEY=(str, "test"), + DD_SECRET_KEY=(str, ""), DD_CREDENTIAL_AES_256_KEY=(str, "."), DD_DATA_UPLOAD_MAX_MEMORY_SIZE=(int, 8388608), # Max post size set to 8mb DD_FORGOT_PASSWORD=(bool, True), # do we show link "I forgot my password" on login screen From 8a44067649fe56618bdc50bbeae61bf0c98a0c38 Mon Sep 17 00:00:00 2001 From: manuelsommer <47991713+manuel-sommer@users.noreply.github.com> Date: Wed, 8 Oct 2025 14:24:40 +0200 Subject: [PATCH 5/5] Update requirements-lint.txt --- requirements-lint.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements-lint.txt b/requirements-lint.txt index 994f517a926..3a9145e0960 100644 --- a/requirements-lint.txt +++ b/requirements-lint.txt @@ -1 +1 @@ -ruff==0.13.3 \ No newline at end of file +ruff==0.14.0