From d72e50f5025be4bac31802fd2ba04d01f552ff21 Mon Sep 17 00:00:00 2001 From: ANDRE Simon Date: Sat, 7 Oct 2023 05:43:29 +0200 Subject: [PATCH] [FIX] syntax fix flake8/pyright --- main/settings/dev.py | 6 +++--- main/settings/settings.py | 1 - skii/endpoint/routers/lesson.py | 1 - skii/endpoint/routers/mixins.py | 6 ++++-- skii/endpoint/routers/student.py | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/main/settings/dev.py b/main/settings/dev.py index f32bf4b..fbf2a76 100644 --- a/main/settings/dev.py +++ b/main/settings/dev.py @@ -1,11 +1,11 @@ -from .settings import * +from .settings import * # noqa DEBUG = True DJANGO_LOG_LEVEL = "DEBUG" -EMAIL_FILE_PATH = BASE_DIR / "email" +EMAIL_FILE_PATH = BASE_DIR / "email" # noqa EMAIL_BACKEND = "django.core.mail.backends.filebased.EmailBackend" -INSTALLED_APPS += [ +INSTALLED_APPS += [ # noqa "django_extensions", ] diff --git a/main/settings/settings.py b/main/settings/settings.py index 55f4ddc..20c3ceb 100644 --- a/main/settings/settings.py +++ b/main/settings/settings.py @@ -9,7 +9,6 @@ For the full list of settings and their values, see https://docs.djangoproject.com/en/4.1/ref/settings/ """ -import os import sys from pathlib import Path diff --git a/skii/endpoint/routers/lesson.py b/skii/endpoint/routers/lesson.py index d3fbb55..563784d 100644 --- a/skii/endpoint/routers/lesson.py +++ b/skii/endpoint/routers/lesson.py @@ -7,7 +7,6 @@ from apps.base.schemas import FormInvalidResponseContract from skii.endpoint.schemas.identifier import IntStrUUID4 from skii.endpoint.schemas.response import SkiiMsgContract -from skii.platform.models.common import GeoCoordinate from skii.platform.models.event import LessonEvent from skii.platform.schemas.event import LessonContract, LessonSaveContract diff --git a/skii/endpoint/routers/mixins.py b/skii/endpoint/routers/mixins.py index c775fa1..e017628 100644 --- a/skii/endpoint/routers/mixins.py +++ b/skii/endpoint/routers/mixins.py @@ -193,10 +193,12 @@ def create_contract( contract_schema = contract.schema() logger.debug( - f"{self.Config.name} Contract have fields {contract_schema['properties'].keys()}" + f"{self.Config.name} Contract have fields " + f"{contract_schema['properties'].keys()}" ) logger.debug( - f"{self.Config.name} Contract have required fields {contract_schema['required']}" + f"{self.Config.name} Contract have required fields " + f"{contract_schema['required']}" ) return contract diff --git a/skii/endpoint/routers/student.py b/skii/endpoint/routers/student.py index b1f8ac9..4bbb7de 100644 --- a/skii/endpoint/routers/student.py +++ b/skii/endpoint/routers/student.py @@ -9,7 +9,7 @@ from apps.base.schemas import FormInvalidResponseContract from skii.endpoint.schemas.identifier import IntStrUUID4 from skii.platform.models.agent import StudentAgent -from skii.platform.schemas.agent import StudentContract, StudentSaveContract, UserSchema +from skii.platform.schemas.agent import StudentContract, StudentSaveContract from skii.endpoint.schemas.response import SkiiMsgContract UserModel = get_user_model()