Fix Ruff import ordering for CI
Some checks failed
CI/CD Pipeline / Code Quality Checks (push) Successful in 1m53s
CI/CD Pipeline / Run Tests (push) Successful in 2m19s
CI/CD Pipeline / Build Docker Images (push) Successful in 3m26s
CI/CD Pipeline / Push to Gitea Registry (push) Failing after 20s
CI/CD Pipeline / Deploy to Server (push) Has been skipped

This commit is contained in:
2026-04-07 16:37:47 +02:00
parent 697ecb7d1c
commit ee497bd557
126 changed files with 280 additions and 382 deletions

View File

@@ -4,13 +4,12 @@ API v1 URL configuration.
Все API эндпоинты версионированы под /api/v1/
"""
from django.urls import include, path
from apps.core.views import (
BackgroundJobListView,
BackgroundJobStatusView,
BackgroundJobStreamView,
)
from django.urls import include, path
app_name = "api_v1"

View File

@@ -9,9 +9,8 @@ https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/
import os
from django.core.asgi import get_asgi_application
from apps.core.startup_checks import run_startup_checks
from django.core.asgi import get_asgi_application
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings.production")
run_startup_checks(component="asgi")

View File

@@ -8,9 +8,8 @@ import logging
import os
import sys
from celery import Celery
from apps.core.startup_checks import run_startup_checks
from celery import Celery
logger = logging.getLogger(__name__)

View File

@@ -4,6 +4,11 @@ URL Configuration for the project.
The `urlpatterns` list routes URLs to views.
"""
from apps.core.openapi import (
OPENAPI_PROJECT_DESCRIPTION,
OPENAPI_PROJECT_TITLE,
RussianTagSchemaGenerator,
)
from django.conf import settings
from django.conf.urls.static import static
from django.contrib import admin
@@ -12,12 +17,6 @@ from drf_yasg import openapi
from drf_yasg.views import get_schema_view
from rest_framework import permissions
from apps.core.openapi import (
OPENAPI_PROJECT_DESCRIPTION,
OPENAPI_PROJECT_TITLE,
RussianTagSchemaGenerator,
)
# Swagger schema view
schema_view = get_schema_view(
openapi.Info(

View File

@@ -9,9 +9,8 @@ https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/
import os
from django.core.wsgi import get_wsgi_application
from apps.core.startup_checks import run_startup_checks
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings.dev")
run_startup_checks(component="wsgi")