From fb6f2e861dd8937de4c49b3b47ef8e5f03ba5389 Mon Sep 17 00:00:00 2001 From: Mandel Olaiya Date: Sun, 29 Mar 2026 21:28:12 +0200 Subject: [PATCH] Fix import ordering for multilingual CI lint --- mandelstudio/main.py | 1 - mandelstudio/management/commands/audit_locales.py | 4 +++- mandelstudio/models.py | 1 + mandelstudio/settings/base.py | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/mandelstudio/main.py b/mandelstudio/main.py index 8239f1f..55225cf 100644 --- a/mandelstudio/main.py +++ b/mandelstudio/main.py @@ -2,7 +2,6 @@ import os import sys from pathlib import Path - PROJECT_ROOT = Path(__file__).resolve().parent.parent if str(PROJECT_ROOT) not in sys.path: sys.path.insert(0, str(PROJECT_ROOT)) diff --git a/mandelstudio/management/commands/audit_locales.py b/mandelstudio/management/commands/audit_locales.py index d76892e..708c7da 100644 --- a/mandelstudio/management/commands/audit_locales.py +++ b/mandelstudio/management/commands/audit_locales.py @@ -1 +1,3 @@ -from mandelblog_content_guard.management.commands.audit_locales import Command # noqa: F401 +from mandelblog_content_guard.management.commands.audit_locales import ( + Command, # noqa: F401 +) diff --git a/mandelstudio/models.py b/mandelstudio/models.py index e90e0e6..6106d0d 100644 --- a/mandelstudio/models.py +++ b/mandelstudio/models.py @@ -2,6 +2,7 @@ import uuid from django.db import models from django.utils.translation import gettext_lazy as _ + from wagtail.admin.panels import FieldPanel from wagtail.blocks import RichTextBlock from wagtail.contrib.settings.models import BaseSiteSetting diff --git a/mandelstudio/settings/base.py b/mandelstudio/settings/base.py index 08a23f6..534c268 100644 --- a/mandelstudio/settings/base.py +++ b/mandelstudio/settings/base.py @@ -8,8 +8,8 @@ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.0/ref/settings/ """ -from pathlib import Path import sys +from pathlib import Path from configtype.jsonconfig import setup_search_paths