Skip to content

Commit

Permalink
[FIX] syntax fix flake8/pyright
Browse files Browse the repository at this point in the history
  • Loading branch information
boot-sandre committed Oct 7, 2023
1 parent a6d7d8b commit d72e50f
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions main/settings/dev.py
Original file line number Diff line number Diff line change
@@ -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",
]
1 change: 0 additions & 1 deletion main/settings/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 0 additions & 1 deletion skii/endpoint/routers/lesson.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 4 additions & 2 deletions skii/endpoint/routers/mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion skii/endpoint/routers/student.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit d72e50f

Please sign in to comment.