chore: unify ruff tooling and route code quality through the Makefile (#11675)

This commit is contained in:
Rubén De la Torre Vico authored and GitHub committed 2026-06-23 17:15:05 +02:00
1 parent de7da3e960
commit 058a1dc8fe
194 files changed
+1112 -1210

No files matched your search

+1 -3
View File
@@ -1,7 +1,6 @@
import warnings
from celery import Celery, Task
from config.env import env
# Suppress specific warnings from django-rest-auth: https://github.com/iMerica/dj-rest-auth/issues/684
@@ -96,9 +95,8 @@ class RLSTask(Task):
shadow=None,
**options,
):
from django_celery_results.models import TaskResult
from api.models import Task as APITask
from django_celery_results.models import TaskResult
result = super().apply_async(
args=args,
-1
View File
@@ -2,7 +2,6 @@ import json
import logging
from enum import StrEnum
from config.env import env
from django_guid.log_filters import CorrelationId
+3 -3
View File
@@ -3,9 +3,8 @@ import multiprocessing
import os
import threading
from uvicorn_worker import UvicornWorker
from config.env import env
from uvicorn_worker import UvicornWorker
# Ensure the environment variable for Django settings is set
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.django.production")
@@ -16,8 +15,9 @@ import django # noqa: E402
django.setup()
from api.compliance import warm_compliance_caches # noqa: E402
from config.django.production import LOGGING as DJANGO_LOGGERS, DEBUG # noqa: E402
from config.custom_logging import BackendLogger # noqa: E402
from config.django.production import DEBUG # noqa: E402
from config.django.production import LOGGING as DJANGO_LOGGERS # noqa: E402
BIND_ADDRESS = env("DJANGO_BIND_ADDRESS", default="127.0.0.1")
PORT = env("DJANGO_PORT", default=8080)
@@ -1,5 +1,4 @@
import sentry_sdk
from config.env import env
IGNORED_EXCEPTIONS = [
+1 -2
View File
@@ -1,6 +1,5 @@
from django.urls import include, path
from api.health import LivenessView, ReadinessView
from django.urls import include, path
urlpatterns = [
path("api/v1/", include("api.v1.urls")),