Skip to content

Commit

Permalink
Fix import sort order
Browse files Browse the repository at this point in the history
Signed-off-by: Sylvain Leclerc <[email protected]>
  • Loading branch information
sylvlecl committed Sep 3, 2024
1 parent 31cb8aa commit 502d0d6
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion antarest/eventbus/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
from typing import List, Optional

from fastapi import Depends, FastAPI, HTTPException, Query
from fastapi_jwt_auth import AuthJWT # type: ignore
from pydantic import BaseModel
from starlette.websockets import WebSocket, WebSocketDisconnect

Expand All @@ -27,7 +28,6 @@
from antarest.core.model import PermissionInfo, StudyPermissionType
from antarest.core.permissions import check_permission
from antarest.login.auth import Auth
from fastapi_jwt_auth import AuthJWT # type: ignore

logger = logging.getLogger(__name__)

Expand Down
2 changes: 1 addition & 1 deletion antarest/login/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@
from typing import Any, Callable, Coroutine, Dict, Optional, Tuple, Union

from fastapi import Depends
from fastapi_jwt_auth import AuthJWT # type: ignore
from pydantic import BaseModel
from ratelimit.types import Scope # type: ignore
from starlette.requests import Request

from antarest.core.config import Config
from antarest.core.jwt import DEFAULT_ADMIN_USER, JWTUser
from fastapi_jwt_auth import AuthJWT # type: ignore

logger = logging.getLogger(__name__)

Expand Down
2 changes: 1 addition & 1 deletion antarest/login/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
from typing import Any, Optional

from fastapi import FastAPI
from fastapi_jwt_auth import AuthJWT # type: ignore
from fastapi_jwt_auth.exceptions import AuthJWTException # type: ignore
from starlette.requests import Request
from starlette.responses import JSONResponse
Expand All @@ -26,7 +27,6 @@
from antarest.login.repository import BotRepository, GroupRepository, RoleRepository, UserLdapRepository, UserRepository
from antarest.login.service import LoginService
from antarest.login.web import create_login_api
from fastapi_jwt_auth import AuthJWT # type: ignore


def build_login(
Expand Down
2 changes: 1 addition & 1 deletion antarest/login/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
from typing import Any, List, Optional, Union

from fastapi import APIRouter, Depends, HTTPException
from fastapi_jwt_auth import AuthJWT # type: ignore
from markupsafe import escape
from pydantic import BaseModel

Expand All @@ -41,7 +42,6 @@
UserInfo,
)
from antarest.login.service import LoginService
from fastapi_jwt_auth import AuthJWT # type: ignore

logger = logging.getLogger(__name__)

Expand Down
2 changes: 1 addition & 1 deletion antarest/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
from fastapi import FastAPI, HTTPException
from fastapi.encoders import jsonable_encoder
from fastapi.exceptions import RequestValidationError
from fastapi_jwt_auth import AuthJWT # type: ignore
from ratelimit import RateLimitMiddleware # type: ignore
from ratelimit.backends.redis import RedisBackend # type: ignore
from ratelimit.backends.simple import MemoryBackend # type: ignore
Expand Down Expand Up @@ -53,7 +54,6 @@
from antarest.study.storage.rawstudy.watcher import Watcher
from antarest.tools.admin_lib import clean_locks
from antarest.utils import SESSION_ARGS, Module, create_services, init_db_engine
from fastapi_jwt_auth import AuthJWT # type: ignore

logger = logging.getLogger(__name__)

Expand Down
2 changes: 1 addition & 1 deletion antarest/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import sqlalchemy.ext.baked # type: ignore
import uvicorn # type: ignore
from fastapi import FastAPI
from fastapi_jwt_auth import AuthJWT # type: ignore
from ratelimit import RateLimitMiddleware # type: ignore
from ratelimit.backends.redis import RedisBackend # type: ignore
from ratelimit.backends.simple import MemoryBackend # type: ignore
Expand Down Expand Up @@ -52,7 +53,6 @@
from antarest.worker.archive_worker import ArchiveWorker
from antarest.worker.simulator_worker import SimulatorWorker
from antarest.worker.worker import AbstractWorker
from fastapi_jwt_auth import AuthJWT # type: ignore

logger = logging.getLogger(__name__)

Expand Down

0 comments on commit 502d0d6

Please sign in to comment.