diff --git a/antarest/core/__init__.py b/antarest/core/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/core/__init__.py +++ b/antarest/core/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/antarest/core/cache/__init__.py b/antarest/core/cache/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/core/cache/__init__.py +++ b/antarest/core/cache/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/antarest/core/cache/business/__init__.py b/antarest/core/cache/business/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/core/cache/business/__init__.py +++ b/antarest/core/cache/business/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/antarest/core/configdata/__init__.py b/antarest/core/configdata/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/core/configdata/__init__.py +++ b/antarest/core/configdata/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/antarest/core/filetransfer/__init__.py b/antarest/core/filetransfer/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/core/filetransfer/__init__.py +++ b/antarest/core/filetransfer/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/antarest/core/interfaces/__init__.py b/antarest/core/interfaces/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/core/interfaces/__init__.py +++ b/antarest/core/interfaces/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/antarest/core/logging/__init__.py b/antarest/core/logging/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/core/logging/__init__.py +++ b/antarest/core/logging/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/antarest/core/maintenance/__init__.py b/antarest/core/maintenance/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/core/maintenance/__init__.py +++ b/antarest/core/maintenance/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/antarest/core/tasks/__init__.py b/antarest/core/tasks/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/core/tasks/__init__.py +++ b/antarest/core/tasks/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/antarest/core/utils/__init__.py b/antarest/core/utils/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/core/utils/__init__.py +++ b/antarest/core/utils/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/antarest/core/utils/fastapi_sqlalchemy/exceptions.py b/antarest/core/utils/fastapi_sqlalchemy/exceptions.py index fef03191fb..56f06f4c22 100644 --- a/antarest/core/utils/fastapi_sqlalchemy/exceptions.py +++ b/antarest/core/utils/fastapi_sqlalchemy/exceptions.py @@ -10,6 +10,7 @@ # # This file is part of the Antares project. + class MissingSessionError(Exception): """Exception raised for when the user tries to access a database session before it is created.""" diff --git a/antarest/core/utils/string.py b/antarest/core/utils/string.py index 15ec9c75ee..35c5e75541 100644 --- a/antarest/core/utils/string.py +++ b/antarest/core/utils/string.py @@ -10,6 +10,7 @@ # # This file is part of the Antares project. + def to_pascal_case(value: str) -> str: return "".join(word.capitalize() for word in value.split("_")) diff --git a/antarest/core/utils/web.py b/antarest/core/utils/web.py index b37dddf0b6..aeae230ce9 100644 --- a/antarest/core/utils/web.py +++ b/antarest/core/utils/web.py @@ -10,6 +10,7 @@ # # This file is part of the Antares project. + class APITag: users = "Users" launcher = "Launch Studies" diff --git a/antarest/eventbus/__init__.py b/antarest/eventbus/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/eventbus/__init__.py +++ b/antarest/eventbus/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/antarest/eventbus/business/__init__.py b/antarest/eventbus/business/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/eventbus/business/__init__.py +++ b/antarest/eventbus/business/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/antarest/eventbus/web.py b/antarest/eventbus/web.py index 481db7b371..d316fa0c94 100644 --- a/antarest/eventbus/web.py +++ b/antarest/eventbus/web.py @@ -18,7 +18,6 @@ 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 @@ -28,6 +27,7 @@ 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__) diff --git a/antarest/launcher/__init__.py b/antarest/launcher/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/launcher/__init__.py +++ b/antarest/launcher/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/antarest/launcher/adapters/__init__.py b/antarest/launcher/adapters/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/launcher/adapters/__init__.py +++ b/antarest/launcher/adapters/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/antarest/launcher/adapters/local_launcher/__init__.py b/antarest/launcher/adapters/local_launcher/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/launcher/adapters/local_launcher/__init__.py +++ b/antarest/launcher/adapters/local_launcher/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/antarest/launcher/adapters/slurm_launcher/__init__.py b/antarest/launcher/adapters/slurm_launcher/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/launcher/adapters/slurm_launcher/__init__.py +++ b/antarest/launcher/adapters/slurm_launcher/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/antarest/launcher/extensions/__init__.py b/antarest/launcher/extensions/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/launcher/extensions/__init__.py +++ b/antarest/launcher/extensions/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/antarest/launcher/extensions/adequacy_patch/__init__.py b/antarest/launcher/extensions/adequacy_patch/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/launcher/extensions/adequacy_patch/__init__.py +++ b/antarest/launcher/extensions/adequacy_patch/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/antarest/login/__init__.py b/antarest/login/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/login/__init__.py +++ b/antarest/login/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/antarest/login/auth.py b/antarest/login/auth.py index 6cd2a3139f..615dc7e170 100644 --- a/antarest/login/auth.py +++ b/antarest/login/auth.py @@ -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__) diff --git a/antarest/login/main.py b/antarest/login/main.py index fe1acea550..b0b96c760a 100644 --- a/antarest/login/main.py +++ b/antarest/login/main.py @@ -15,7 +15,6 @@ 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 @@ -27,6 +26,7 @@ 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( diff --git a/antarest/login/web.py b/antarest/login/web.py index 8f98012529..508db2b77a 100644 --- a/antarest/login/web.py +++ b/antarest/login/web.py @@ -16,7 +16,6 @@ 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 @@ -42,6 +41,7 @@ UserInfo, ) from antarest.login.service import LoginService +from fastapi_jwt_auth import AuthJWT # type: ignore logger = logging.getLogger(__name__) diff --git a/antarest/main.py b/antarest/main.py index c5e4d30197..5b3ea2cb18 100644 --- a/antarest/main.py +++ b/antarest/main.py @@ -23,7 +23,6 @@ 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 @@ -54,6 +53,7 @@ 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__) diff --git a/antarest/matrixstore/__init__.py b/antarest/matrixstore/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/matrixstore/__init__.py +++ b/antarest/matrixstore/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/antarest/study/__init__.py b/antarest/study/__init__.py index 84bf3d47c3..058c6b221a 100644 --- a/antarest/study/__init__.py +++ b/antarest/study/__init__.py @@ -9,5 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - - diff --git a/antarest/study/business/__init__.py b/antarest/study/business/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/study/business/__init__.py +++ b/antarest/study/business/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/antarest/study/business/areas/__init__.py b/antarest/study/business/areas/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/study/business/areas/__init__.py +++ b/antarest/study/business/areas/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/antarest/study/common/__init__.py b/antarest/study/common/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/study/common/__init__.py +++ b/antarest/study/common/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/antarest/study/storage/__init__.py b/antarest/study/storage/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/study/storage/__init__.py +++ b/antarest/study/storage/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/antarest/study/storage/rawstudy/__init__.py b/antarest/study/storage/rawstudy/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/study/storage/rawstudy/__init__.py +++ b/antarest/study/storage/rawstudy/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/antarest/study/storage/rawstudy/model/__init__.py b/antarest/study/storage/rawstudy/model/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/study/storage/rawstudy/model/__init__.py +++ b/antarest/study/storage/rawstudy/model/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/antarest/study/storage/rawstudy/model/filesystem/__init__.py b/antarest/study/storage/rawstudy/model/filesystem/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/study/storage/rawstudy/model/filesystem/__init__.py +++ b/antarest/study/storage/rawstudy/model/filesystem/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/antarest/study/storage/rawstudy/model/filesystem/common/__init__.py b/antarest/study/storage/rawstudy/model/filesystem/common/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/study/storage/rawstudy/model/filesystem/common/__init__.py +++ b/antarest/study/storage/rawstudy/model/filesystem/common/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/antarest/study/storage/rawstudy/model/filesystem/config/__init__.py b/antarest/study/storage/rawstudy/model/filesystem/config/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/study/storage/rawstudy/model/filesystem/config/__init__.py +++ b/antarest/study/storage/rawstudy/model/filesystem/config/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/antarest/study/storage/rawstudy/model/filesystem/exceptions.py b/antarest/study/storage/rawstudy/model/filesystem/exceptions.py index a1d4fda000..399847efc0 100644 --- a/antarest/study/storage/rawstudy/model/filesystem/exceptions.py +++ b/antarest/study/storage/rawstudy/model/filesystem/exceptions.py @@ -10,6 +10,7 @@ # # This file is part of the Antares project. + class DenormalizationException(Exception): def __init__(self, msg: str): super(DenormalizationException, self).__init__(msg) diff --git a/antarest/study/storage/rawstudy/model/filesystem/matrix/__init__.py b/antarest/study/storage/rawstudy/model/filesystem/matrix/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/study/storage/rawstudy/model/filesystem/matrix/__init__.py +++ b/antarest/study/storage/rawstudy/model/filesystem/matrix/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/antarest/study/storage/rawstudy/model/filesystem/root/__init__.py b/antarest/study/storage/rawstudy/model/filesystem/root/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/study/storage/rawstudy/model/filesystem/root/__init__.py +++ b/antarest/study/storage/rawstudy/model/filesystem/root/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/antarest/study/storage/rawstudy/model/filesystem/root/input/__init__.py b/antarest/study/storage/rawstudy/model/filesystem/root/input/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/study/storage/rawstudy/model/filesystem/root/input/__init__.py +++ b/antarest/study/storage/rawstudy/model/filesystem/root/input/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/antarest/study/storage/rawstudy/model/filesystem/root/input/areas/__init__.py b/antarest/study/storage/rawstudy/model/filesystem/root/input/areas/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/study/storage/rawstudy/model/filesystem/root/input/areas/__init__.py +++ b/antarest/study/storage/rawstudy/model/filesystem/root/input/areas/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/antarest/study/storage/rawstudy/model/filesystem/root/input/areas/item/__init__.py b/antarest/study/storage/rawstudy/model/filesystem/root/input/areas/item/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/study/storage/rawstudy/model/filesystem/root/input/areas/item/__init__.py +++ b/antarest/study/storage/rawstudy/model/filesystem/root/input/areas/item/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/antarest/study/storage/rawstudy/model/filesystem/root/input/bindingconstraints/__init__.py b/antarest/study/storage/rawstudy/model/filesystem/root/input/bindingconstraints/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/study/storage/rawstudy/model/filesystem/root/input/bindingconstraints/__init__.py +++ b/antarest/study/storage/rawstudy/model/filesystem/root/input/bindingconstraints/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/antarest/study/storage/rawstudy/model/filesystem/root/input/commons/__init__.py b/antarest/study/storage/rawstudy/model/filesystem/root/input/commons/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/study/storage/rawstudy/model/filesystem/root/input/commons/__init__.py +++ b/antarest/study/storage/rawstudy/model/filesystem/root/input/commons/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/antarest/study/storage/rawstudy/model/filesystem/root/input/hydro/__init__.py b/antarest/study/storage/rawstudy/model/filesystem/root/input/hydro/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/study/storage/rawstudy/model/filesystem/root/input/hydro/__init__.py +++ b/antarest/study/storage/rawstudy/model/filesystem/root/input/hydro/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/antarest/study/storage/rawstudy/model/filesystem/root/input/hydro/allocation/__init__.py b/antarest/study/storage/rawstudy/model/filesystem/root/input/hydro/allocation/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/study/storage/rawstudy/model/filesystem/root/input/hydro/allocation/__init__.py +++ b/antarest/study/storage/rawstudy/model/filesystem/root/input/hydro/allocation/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/antarest/study/storage/rawstudy/model/filesystem/root/input/hydro/common/__init__.py b/antarest/study/storage/rawstudy/model/filesystem/root/input/hydro/common/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/study/storage/rawstudy/model/filesystem/root/input/hydro/common/__init__.py +++ b/antarest/study/storage/rawstudy/model/filesystem/root/input/hydro/common/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/antarest/study/storage/rawstudy/model/filesystem/root/input/hydro/common/capacity/__init__.py b/antarest/study/storage/rawstudy/model/filesystem/root/input/hydro/common/capacity/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/study/storage/rawstudy/model/filesystem/root/input/hydro/common/capacity/__init__.py +++ b/antarest/study/storage/rawstudy/model/filesystem/root/input/hydro/common/capacity/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/antarest/study/storage/rawstudy/model/filesystem/root/input/hydro/prepro/__init__.py b/antarest/study/storage/rawstudy/model/filesystem/root/input/hydro/prepro/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/study/storage/rawstudy/model/filesystem/root/input/hydro/prepro/__init__.py +++ b/antarest/study/storage/rawstudy/model/filesystem/root/input/hydro/prepro/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/antarest/study/storage/rawstudy/model/filesystem/root/input/hydro/prepro/area/__init__.py b/antarest/study/storage/rawstudy/model/filesystem/root/input/hydro/prepro/area/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/study/storage/rawstudy/model/filesystem/root/input/hydro/prepro/area/__init__.py +++ b/antarest/study/storage/rawstudy/model/filesystem/root/input/hydro/prepro/area/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/antarest/study/storage/rawstudy/model/filesystem/root/input/hydro/series/__init__.py b/antarest/study/storage/rawstudy/model/filesystem/root/input/hydro/series/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/study/storage/rawstudy/model/filesystem/root/input/hydro/series/__init__.py +++ b/antarest/study/storage/rawstudy/model/filesystem/root/input/hydro/series/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/antarest/study/storage/rawstudy/model/filesystem/root/input/hydro/series/area/__init__.py b/antarest/study/storage/rawstudy/model/filesystem/root/input/hydro/series/area/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/study/storage/rawstudy/model/filesystem/root/input/hydro/series/area/__init__.py +++ b/antarest/study/storage/rawstudy/model/filesystem/root/input/hydro/series/area/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/antarest/study/storage/rawstudy/model/filesystem/root/input/link/__init__.py b/antarest/study/storage/rawstudy/model/filesystem/root/input/link/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/study/storage/rawstudy/model/filesystem/root/input/link/__init__.py +++ b/antarest/study/storage/rawstudy/model/filesystem/root/input/link/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/antarest/study/storage/rawstudy/model/filesystem/root/input/link/area/__init__.py b/antarest/study/storage/rawstudy/model/filesystem/root/input/link/area/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/study/storage/rawstudy/model/filesystem/root/input/link/area/__init__.py +++ b/antarest/study/storage/rawstudy/model/filesystem/root/input/link/area/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/antarest/study/storage/rawstudy/model/filesystem/root/input/link/area/capacities/__init__.py b/antarest/study/storage/rawstudy/model/filesystem/root/input/link/area/capacities/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/study/storage/rawstudy/model/filesystem/root/input/link/area/capacities/__init__.py +++ b/antarest/study/storage/rawstudy/model/filesystem/root/input/link/area/capacities/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/antarest/study/storage/rawstudy/model/filesystem/root/input/miscgen/__init__.py b/antarest/study/storage/rawstudy/model/filesystem/root/input/miscgen/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/study/storage/rawstudy/model/filesystem/root/input/miscgen/__init__.py +++ b/antarest/study/storage/rawstudy/model/filesystem/root/input/miscgen/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/antarest/study/storage/rawstudy/model/filesystem/root/input/renewables/__init__.py b/antarest/study/storage/rawstudy/model/filesystem/root/input/renewables/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/study/storage/rawstudy/model/filesystem/root/input/renewables/__init__.py +++ b/antarest/study/storage/rawstudy/model/filesystem/root/input/renewables/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/antarest/study/storage/rawstudy/model/filesystem/root/input/reserves/__init__.py b/antarest/study/storage/rawstudy/model/filesystem/root/input/reserves/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/study/storage/rawstudy/model/filesystem/root/input/reserves/__init__.py +++ b/antarest/study/storage/rawstudy/model/filesystem/root/input/reserves/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/antarest/study/storage/rawstudy/model/filesystem/root/input/st_storage/__init__.py b/antarest/study/storage/rawstudy/model/filesystem/root/input/st_storage/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/study/storage/rawstudy/model/filesystem/root/input/st_storage/__init__.py +++ b/antarest/study/storage/rawstudy/model/filesystem/root/input/st_storage/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/antarest/study/storage/rawstudy/model/filesystem/root/input/st_storage/clusters/__init__.py b/antarest/study/storage/rawstudy/model/filesystem/root/input/st_storage/clusters/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/study/storage/rawstudy/model/filesystem/root/input/st_storage/clusters/__init__.py +++ b/antarest/study/storage/rawstudy/model/filesystem/root/input/st_storage/clusters/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/antarest/study/storage/rawstudy/model/filesystem/root/input/st_storage/clusters/area/__init__.py b/antarest/study/storage/rawstudy/model/filesystem/root/input/st_storage/clusters/area/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/study/storage/rawstudy/model/filesystem/root/input/st_storage/clusters/area/__init__.py +++ b/antarest/study/storage/rawstudy/model/filesystem/root/input/st_storage/clusters/area/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/antarest/study/storage/rawstudy/model/filesystem/root/input/st_storage/series/__init__.py b/antarest/study/storage/rawstudy/model/filesystem/root/input/st_storage/series/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/study/storage/rawstudy/model/filesystem/root/input/st_storage/series/__init__.py +++ b/antarest/study/storage/rawstudy/model/filesystem/root/input/st_storage/series/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/antarest/study/storage/rawstudy/model/filesystem/root/input/st_storage/series/area/__init__.py b/antarest/study/storage/rawstudy/model/filesystem/root/input/st_storage/series/area/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/study/storage/rawstudy/model/filesystem/root/input/st_storage/series/area/__init__.py +++ b/antarest/study/storage/rawstudy/model/filesystem/root/input/st_storage/series/area/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/antarest/study/storage/rawstudy/model/filesystem/root/input/st_storage/series/area/st_storage/__init__.py b/antarest/study/storage/rawstudy/model/filesystem/root/input/st_storage/series/area/st_storage/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/study/storage/rawstudy/model/filesystem/root/input/st_storage/series/area/st_storage/__init__.py +++ b/antarest/study/storage/rawstudy/model/filesystem/root/input/st_storage/series/area/st_storage/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/antarest/study/storage/rawstudy/model/filesystem/root/input/thermal/__init__.py b/antarest/study/storage/rawstudy/model/filesystem/root/input/thermal/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/study/storage/rawstudy/model/filesystem/root/input/thermal/__init__.py +++ b/antarest/study/storage/rawstudy/model/filesystem/root/input/thermal/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/antarest/study/storage/rawstudy/model/filesystem/root/input/thermal/cluster/__init__.py b/antarest/study/storage/rawstudy/model/filesystem/root/input/thermal/cluster/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/study/storage/rawstudy/model/filesystem/root/input/thermal/cluster/__init__.py +++ b/antarest/study/storage/rawstudy/model/filesystem/root/input/thermal/cluster/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/antarest/study/storage/rawstudy/model/filesystem/root/input/thermal/cluster/area/__init__.py b/antarest/study/storage/rawstudy/model/filesystem/root/input/thermal/cluster/area/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/study/storage/rawstudy/model/filesystem/root/input/thermal/cluster/area/__init__.py +++ b/antarest/study/storage/rawstudy/model/filesystem/root/input/thermal/cluster/area/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/antarest/study/storage/rawstudy/model/filesystem/root/input/thermal/prepro/__init__.py b/antarest/study/storage/rawstudy/model/filesystem/root/input/thermal/prepro/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/study/storage/rawstudy/model/filesystem/root/input/thermal/prepro/__init__.py +++ b/antarest/study/storage/rawstudy/model/filesystem/root/input/thermal/prepro/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/antarest/study/storage/rawstudy/model/filesystem/root/input/thermal/prepro/area/__init__.py b/antarest/study/storage/rawstudy/model/filesystem/root/input/thermal/prepro/area/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/study/storage/rawstudy/model/filesystem/root/input/thermal/prepro/area/__init__.py +++ b/antarest/study/storage/rawstudy/model/filesystem/root/input/thermal/prepro/area/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/antarest/study/storage/rawstudy/model/filesystem/root/input/thermal/prepro/area/thermal/__init__.py b/antarest/study/storage/rawstudy/model/filesystem/root/input/thermal/prepro/area/thermal/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/study/storage/rawstudy/model/filesystem/root/input/thermal/prepro/area/thermal/__init__.py +++ b/antarest/study/storage/rawstudy/model/filesystem/root/input/thermal/prepro/area/thermal/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/antarest/study/storage/rawstudy/model/filesystem/root/input/thermal/series/__init__.py b/antarest/study/storage/rawstudy/model/filesystem/root/input/thermal/series/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/study/storage/rawstudy/model/filesystem/root/input/thermal/series/__init__.py +++ b/antarest/study/storage/rawstudy/model/filesystem/root/input/thermal/series/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/antarest/study/storage/rawstudy/model/filesystem/root/input/thermal/series/area/__init__.py b/antarest/study/storage/rawstudy/model/filesystem/root/input/thermal/series/area/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/study/storage/rawstudy/model/filesystem/root/input/thermal/series/area/__init__.py +++ b/antarest/study/storage/rawstudy/model/filesystem/root/input/thermal/series/area/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/antarest/study/storage/rawstudy/model/filesystem/root/input/thermal/series/area/thermal/__init__.py b/antarest/study/storage/rawstudy/model/filesystem/root/input/thermal/series/area/thermal/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/study/storage/rawstudy/model/filesystem/root/input/thermal/series/area/thermal/__init__.py +++ b/antarest/study/storage/rawstudy/model/filesystem/root/input/thermal/series/area/thermal/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/antarest/study/storage/rawstudy/model/filesystem/root/layers/__init__.py b/antarest/study/storage/rawstudy/model/filesystem/root/layers/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/study/storage/rawstudy/model/filesystem/root/layers/__init__.py +++ b/antarest/study/storage/rawstudy/model/filesystem/root/layers/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/antarest/study/storage/rawstudy/model/filesystem/root/output/__init__.py b/antarest/study/storage/rawstudy/model/filesystem/root/output/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/study/storage/rawstudy/model/filesystem/root/output/__init__.py +++ b/antarest/study/storage/rawstudy/model/filesystem/root/output/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/antarest/study/storage/rawstudy/model/filesystem/root/output/simulation/__init__.py b/antarest/study/storage/rawstudy/model/filesystem/root/output/simulation/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/study/storage/rawstudy/model/filesystem/root/output/simulation/__init__.py +++ b/antarest/study/storage/rawstudy/model/filesystem/root/output/simulation/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/antarest/study/storage/rawstudy/model/filesystem/root/output/simulation/about/__init__.py b/antarest/study/storage/rawstudy/model/filesystem/root/output/simulation/about/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/study/storage/rawstudy/model/filesystem/root/output/simulation/about/__init__.py +++ b/antarest/study/storage/rawstudy/model/filesystem/root/output/simulation/about/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/antarest/study/storage/rawstudy/model/filesystem/root/output/simulation/mode/__init__.py b/antarest/study/storage/rawstudy/model/filesystem/root/output/simulation/mode/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/study/storage/rawstudy/model/filesystem/root/output/simulation/mode/__init__.py +++ b/antarest/study/storage/rawstudy/model/filesystem/root/output/simulation/mode/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/antarest/study/storage/rawstudy/model/filesystem/root/output/simulation/mode/common/__init__.py b/antarest/study/storage/rawstudy/model/filesystem/root/output/simulation/mode/common/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/study/storage/rawstudy/model/filesystem/root/output/simulation/mode/common/__init__.py +++ b/antarest/study/storage/rawstudy/model/filesystem/root/output/simulation/mode/common/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/antarest/study/storage/rawstudy/model/filesystem/root/output/simulation/mode/mcall/__init__.py b/antarest/study/storage/rawstudy/model/filesystem/root/output/simulation/mode/mcall/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/study/storage/rawstudy/model/filesystem/root/output/simulation/mode/mcall/__init__.py +++ b/antarest/study/storage/rawstudy/model/filesystem/root/output/simulation/mode/mcall/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/antarest/study/storage/rawstudy/model/filesystem/root/output/simulation/mode/mcind/__init__.py b/antarest/study/storage/rawstudy/model/filesystem/root/output/simulation/mode/mcind/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/study/storage/rawstudy/model/filesystem/root/output/simulation/mode/mcind/__init__.py +++ b/antarest/study/storage/rawstudy/model/filesystem/root/output/simulation/mode/mcind/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/antarest/study/storage/rawstudy/model/filesystem/root/output/simulation/ts_generator/__init__.py b/antarest/study/storage/rawstudy/model/filesystem/root/output/simulation/ts_generator/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/study/storage/rawstudy/model/filesystem/root/output/simulation/ts_generator/__init__.py +++ b/antarest/study/storage/rawstudy/model/filesystem/root/output/simulation/ts_generator/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/antarest/study/storage/rawstudy/model/filesystem/root/output/simulation/ts_numbers/__init__.py b/antarest/study/storage/rawstudy/model/filesystem/root/output/simulation/ts_numbers/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/study/storage/rawstudy/model/filesystem/root/output/simulation/ts_numbers/__init__.py +++ b/antarest/study/storage/rawstudy/model/filesystem/root/output/simulation/ts_numbers/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/antarest/study/storage/rawstudy/model/filesystem/root/output/simulation/xpansion/__init__.py b/antarest/study/storage/rawstudy/model/filesystem/root/output/simulation/xpansion/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/study/storage/rawstudy/model/filesystem/root/output/simulation/xpansion/__init__.py +++ b/antarest/study/storage/rawstudy/model/filesystem/root/output/simulation/xpansion/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/antarest/study/storage/rawstudy/model/filesystem/root/settings/__init__.py b/antarest/study/storage/rawstudy/model/filesystem/root/settings/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/study/storage/rawstudy/model/filesystem/root/settings/__init__.py +++ b/antarest/study/storage/rawstudy/model/filesystem/root/settings/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/antarest/study/storage/rawstudy/model/filesystem/root/settings/resources/__init__.py b/antarest/study/storage/rawstudy/model/filesystem/root/settings/resources/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/study/storage/rawstudy/model/filesystem/root/settings/resources/__init__.py +++ b/antarest/study/storage/rawstudy/model/filesystem/root/settings/resources/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/antarest/study/storage/rawstudy/model/filesystem/root/settings/simulations/__init__.py b/antarest/study/storage/rawstudy/model/filesystem/root/settings/simulations/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/study/storage/rawstudy/model/filesystem/root/settings/simulations/__init__.py +++ b/antarest/study/storage/rawstudy/model/filesystem/root/settings/simulations/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/antarest/study/storage/rawstudy/model/filesystem/root/user/__init__.py b/antarest/study/storage/rawstudy/model/filesystem/root/user/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/study/storage/rawstudy/model/filesystem/root/user/__init__.py +++ b/antarest/study/storage/rawstudy/model/filesystem/root/user/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/antarest/study/storage/rawstudy/model/filesystem/root/user/expansion/__init__.py b/antarest/study/storage/rawstudy/model/filesystem/root/user/expansion/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/study/storage/rawstudy/model/filesystem/root/user/expansion/__init__.py +++ b/antarest/study/storage/rawstudy/model/filesystem/root/user/expansion/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/antarest/study/storage/variantstudy/__init__.py b/antarest/study/storage/variantstudy/__init__.py index 84bf3d47c3..058c6b221a 100644 --- a/antarest/study/storage/variantstudy/__init__.py +++ b/antarest/study/storage/variantstudy/__init__.py @@ -9,5 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - - diff --git a/antarest/study/storage/variantstudy/business/__init__.py b/antarest/study/storage/variantstudy/business/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/study/storage/variantstudy/business/__init__.py +++ b/antarest/study/storage/variantstudy/business/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/antarest/study/storage/variantstudy/model/__init__.py b/antarest/study/storage/variantstudy/model/__init__.py index 84bf3d47c3..058c6b221a 100644 --- a/antarest/study/storage/variantstudy/model/__init__.py +++ b/antarest/study/storage/variantstudy/model/__init__.py @@ -9,5 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - - diff --git a/antarest/study/storage/variantstudy/model/command/__init__.py b/antarest/study/storage/variantstudy/model/command/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/study/storage/variantstudy/model/command/__init__.py +++ b/antarest/study/storage/variantstudy/model/command/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/antarest/study/web/__init__.py b/antarest/study/web/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/study/web/__init__.py +++ b/antarest/study/web/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/antarest/tools/__init__.py b/antarest/tools/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/tools/__init__.py +++ b/antarest/tools/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/antarest/utils.py b/antarest/utils.py index 8c9b0dea70..60f520f2e7 100644 --- a/antarest/utils.py +++ b/antarest/utils.py @@ -20,7 +20,6 @@ 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 @@ -54,6 +53,7 @@ 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__) diff --git a/antarest/worker/__init__.py b/antarest/worker/__init__.py index befa122ebc..058c6b221a 100644 --- a/antarest/worker/__init__.py +++ b/antarest/worker/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/tests/__init__.py b/tests/__init__.py index befa122ebc..058c6b221a 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/tests/cache/__init__.py b/tests/cache/__init__.py index befa122ebc..058c6b221a 100644 --- a/tests/cache/__init__.py +++ b/tests/cache/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/tests/core/__init__.py b/tests/core/__init__.py index befa122ebc..058c6b221a 100644 --- a/tests/core/__init__.py +++ b/tests/core/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/tests/core/tasks/__init__.py b/tests/core/tasks/__init__.py index befa122ebc..058c6b221a 100644 --- a/tests/core/tasks/__init__.py +++ b/tests/core/tasks/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/tests/core/utils/__init__.py b/tests/core/utils/__init__.py index befa122ebc..058c6b221a 100644 --- a/tests/core/utils/__init__.py +++ b/tests/core/utils/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/tests/eventbus/__init__.py b/tests/eventbus/__init__.py index befa122ebc..058c6b221a 100644 --- a/tests/eventbus/__init__.py +++ b/tests/eventbus/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/tests/integration/__init__.py b/tests/integration/__init__.py index befa122ebc..058c6b221a 100644 --- a/tests/integration/__init__.py +++ b/tests/integration/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/tests/integration/filesystem_blueprint/__init__.py b/tests/integration/filesystem_blueprint/__init__.py index befa122ebc..058c6b221a 100644 --- a/tests/integration/filesystem_blueprint/__init__.py +++ b/tests/integration/filesystem_blueprint/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/tests/integration/launcher_blueprint/__init__.py b/tests/integration/launcher_blueprint/__init__.py index befa122ebc..058c6b221a 100644 --- a/tests/integration/launcher_blueprint/__init__.py +++ b/tests/integration/launcher_blueprint/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/tests/integration/raw_studies_blueprint/__init__.py b/tests/integration/raw_studies_blueprint/__init__.py index befa122ebc..058c6b221a 100644 --- a/tests/integration/raw_studies_blueprint/__init__.py +++ b/tests/integration/raw_studies_blueprint/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/tests/integration/studies_blueprint/__init__.py b/tests/integration/studies_blueprint/__init__.py index befa122ebc..058c6b221a 100644 --- a/tests/integration/studies_blueprint/__init__.py +++ b/tests/integration/studies_blueprint/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/tests/integration/study_data_blueprint/__init__.py b/tests/integration/study_data_blueprint/__init__.py index befa122ebc..058c6b221a 100644 --- a/tests/integration/study_data_blueprint/__init__.py +++ b/tests/integration/study_data_blueprint/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/tests/integration/variant_blueprint/__init__.py b/tests/integration/variant_blueprint/__init__.py index befa122ebc..058c6b221a 100644 --- a/tests/integration/variant_blueprint/__init__.py +++ b/tests/integration/variant_blueprint/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/tests/integration/xpansion_studies_blueprint/__init__.py b/tests/integration/xpansion_studies_blueprint/__init__.py index befa122ebc..058c6b221a 100644 --- a/tests/integration/xpansion_studies_blueprint/__init__.py +++ b/tests/integration/xpansion_studies_blueprint/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/tests/launcher/__init__.py b/tests/launcher/__init__.py index befa122ebc..058c6b221a 100644 --- a/tests/launcher/__init__.py +++ b/tests/launcher/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/tests/login/__init__.py b/tests/login/__init__.py index befa122ebc..058c6b221a 100644 --- a/tests/login/__init__.py +++ b/tests/login/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/tests/login/test_web.py b/tests/login/test_web.py index fe1cda2230..78e605d25b 100644 --- a/tests/login/test_web.py +++ b/tests/login/test_web.py @@ -19,7 +19,6 @@ import pytest from fastapi import FastAPI -from fastapi_jwt_auth import AuthJWT from starlette.testclient import TestClient from antarest.core.config import Config, SecurityConfig @@ -42,6 +41,7 @@ UserInfo, ) from antarest.main import JwtSettings +from fastapi_jwt_auth import AuthJWT PARAMS = RequestParameters( user=JWTUser( diff --git a/tests/matrixstore/__init__.py b/tests/matrixstore/__init__.py index befa122ebc..058c6b221a 100644 --- a/tests/matrixstore/__init__.py +++ b/tests/matrixstore/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/tests/matrixstore/test_web.py b/tests/matrixstore/test_web.py index 2879b07bf4..920a832f5c 100644 --- a/tests/matrixstore/test_web.py +++ b/tests/matrixstore/test_web.py @@ -15,13 +15,13 @@ import pytest from fastapi import FastAPI -from fastapi_jwt_auth import AuthJWT from starlette.testclient import TestClient from antarest.core.config import Config, SecurityConfig from antarest.main import JwtSettings from antarest.matrixstore.main import build_matrix_service from antarest.matrixstore.model import MatrixDTO, MatrixInfoDTO +from fastapi_jwt_auth import AuthJWT from tests.login.test_web import create_auth_token diff --git a/tests/storage/__init__.py b/tests/storage/__init__.py index befa122ebc..058c6b221a 100644 --- a/tests/storage/__init__.py +++ b/tests/storage/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/tests/storage/business/__init__.py b/tests/storage/business/__init__.py index befa122ebc..058c6b221a 100644 --- a/tests/storage/business/__init__.py +++ b/tests/storage/business/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/tests/storage/integration/data/__init__.py b/tests/storage/integration/data/__init__.py index befa122ebc..058c6b221a 100644 --- a/tests/storage/integration/data/__init__.py +++ b/tests/storage/integration/data/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/tests/storage/rawstudies/__init__.py b/tests/storage/rawstudies/__init__.py index befa122ebc..058c6b221a 100644 --- a/tests/storage/rawstudies/__init__.py +++ b/tests/storage/rawstudies/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/tests/storage/repository/__init__.py b/tests/storage/repository/__init__.py index befa122ebc..058c6b221a 100644 --- a/tests/storage/repository/__init__.py +++ b/tests/storage/repository/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/tests/storage/repository/antares_io/__init__.py b/tests/storage/repository/antares_io/__init__.py index befa122ebc..058c6b221a 100644 --- a/tests/storage/repository/antares_io/__init__.py +++ b/tests/storage/repository/antares_io/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/tests/storage/repository/filesystem/__init__.py b/tests/storage/repository/filesystem/__init__.py index befa122ebc..058c6b221a 100644 --- a/tests/storage/repository/filesystem/__init__.py +++ b/tests/storage/repository/filesystem/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/tests/storage/repository/filesystem/config/__init__.py b/tests/storage/repository/filesystem/config/__init__.py index befa122ebc..058c6b221a 100644 --- a/tests/storage/repository/filesystem/config/__init__.py +++ b/tests/storage/repository/filesystem/config/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/tests/storage/repository/filesystem/matrix/__init__.py b/tests/storage/repository/filesystem/matrix/__init__.py index befa122ebc..058c6b221a 100644 --- a/tests/storage/repository/filesystem/matrix/__init__.py +++ b/tests/storage/repository/filesystem/matrix/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/tests/storage/repository/filesystem/root/__init__.py b/tests/storage/repository/filesystem/root/__init__.py index befa122ebc..058c6b221a 100644 --- a/tests/storage/repository/filesystem/root/__init__.py +++ b/tests/storage/repository/filesystem/root/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/tests/storage/repository/filesystem/root/input/__init__.py b/tests/storage/repository/filesystem/root/input/__init__.py index befa122ebc..058c6b221a 100644 --- a/tests/storage/repository/filesystem/root/input/__init__.py +++ b/tests/storage/repository/filesystem/root/input/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/tests/storage/repository/filesystem/root/input/hydro/__init__.py b/tests/storage/repository/filesystem/root/input/hydro/__init__.py index befa122ebc..058c6b221a 100644 --- a/tests/storage/repository/filesystem/root/input/hydro/__init__.py +++ b/tests/storage/repository/filesystem/root/input/hydro/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/tests/storage/repository/filesystem/root/input/hydro/common/__init__.py b/tests/storage/repository/filesystem/root/input/hydro/common/__init__.py index befa122ebc..058c6b221a 100644 --- a/tests/storage/repository/filesystem/root/input/hydro/common/__init__.py +++ b/tests/storage/repository/filesystem/root/input/hydro/common/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/tests/storage/repository/filesystem/root/input/hydro/common/capacity/__init__.py b/tests/storage/repository/filesystem/root/input/hydro/common/capacity/__init__.py index befa122ebc..058c6b221a 100644 --- a/tests/storage/repository/filesystem/root/input/hydro/common/capacity/__init__.py +++ b/tests/storage/repository/filesystem/root/input/hydro/common/capacity/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/tests/storage/repository/filesystem/root/input/hydro/series/__init__.py b/tests/storage/repository/filesystem/root/input/hydro/series/__init__.py index befa122ebc..058c6b221a 100644 --- a/tests/storage/repository/filesystem/root/input/hydro/series/__init__.py +++ b/tests/storage/repository/filesystem/root/input/hydro/series/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/tests/storage/repository/filesystem/root/input/hydro/series/area/__init__.py b/tests/storage/repository/filesystem/root/input/hydro/series/area/__init__.py index befa122ebc..058c6b221a 100644 --- a/tests/storage/repository/filesystem/root/input/hydro/series/area/__init__.py +++ b/tests/storage/repository/filesystem/root/input/hydro/series/area/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/tests/storage/repository/filesystem/root/output/__init__.py b/tests/storage/repository/filesystem/root/output/__init__.py index befa122ebc..058c6b221a 100644 --- a/tests/storage/repository/filesystem/root/output/__init__.py +++ b/tests/storage/repository/filesystem/root/output/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/tests/storage/repository/filesystem/root/output/simulation/__init__.py b/tests/storage/repository/filesystem/root/output/simulation/__init__.py index befa122ebc..058c6b221a 100644 --- a/tests/storage/repository/filesystem/root/output/simulation/__init__.py +++ b/tests/storage/repository/filesystem/root/output/simulation/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/tests/storage/repository/filesystem/root/output/simulation/mode/__init__.py b/tests/storage/repository/filesystem/root/output/simulation/mode/__init__.py index befa122ebc..058c6b221a 100644 --- a/tests/storage/repository/filesystem/root/output/simulation/mode/__init__.py +++ b/tests/storage/repository/filesystem/root/output/simulation/mode/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/tests/storage/repository/filesystem/root/output/simulation/mode/common/__init__.py b/tests/storage/repository/filesystem/root/output/simulation/mode/common/__init__.py index befa122ebc..058c6b221a 100644 --- a/tests/storage/repository/filesystem/root/output/simulation/mode/common/__init__.py +++ b/tests/storage/repository/filesystem/root/output/simulation/mode/common/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/tests/storage/repository/filesystem/special_node/__init__.py b/tests/storage/repository/filesystem/special_node/__init__.py index befa122ebc..058c6b221a 100644 --- a/tests/storage/repository/filesystem/special_node/__init__.py +++ b/tests/storage/repository/filesystem/special_node/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/tests/storage/web/__init__.py b/tests/storage/web/__init__.py index befa122ebc..058c6b221a 100644 --- a/tests/storage/web/__init__.py +++ b/tests/storage/web/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/tests/study/__init__.py b/tests/study/__init__.py index befa122ebc..058c6b221a 100644 --- a/tests/study/__init__.py +++ b/tests/study/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/tests/study/business/__init__.py b/tests/study/business/__init__.py index befa122ebc..058c6b221a 100644 --- a/tests/study/business/__init__.py +++ b/tests/study/business/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/tests/study/business/areas/__init__.py b/tests/study/business/areas/__init__.py index befa122ebc..058c6b221a 100644 --- a/tests/study/business/areas/__init__.py +++ b/tests/study/business/areas/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/tests/study/storage/__init__.py b/tests/study/storage/__init__.py index befa122ebc..058c6b221a 100644 --- a/tests/study/storage/__init__.py +++ b/tests/study/storage/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/tests/study/storage/rawstudy/__init__.py b/tests/study/storage/rawstudy/__init__.py index befa122ebc..058c6b221a 100644 --- a/tests/study/storage/rawstudy/__init__.py +++ b/tests/study/storage/rawstudy/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/tests/study/storage/variantstudy/__init__.py b/tests/study/storage/variantstudy/__init__.py index befa122ebc..058c6b221a 100644 --- a/tests/study/storage/variantstudy/__init__.py +++ b/tests/study/storage/variantstudy/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/tests/study/storage/variantstudy/business/__init__.py b/tests/study/storage/variantstudy/business/__init__.py index befa122ebc..058c6b221a 100644 --- a/tests/study/storage/variantstudy/business/__init__.py +++ b/tests/study/storage/variantstudy/business/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/tests/study/storage/variantstudy/model/__init__.py b/tests/study/storage/variantstudy/model/__init__.py index befa122ebc..058c6b221a 100644 --- a/tests/study/storage/variantstudy/model/__init__.py +++ b/tests/study/storage/variantstudy/model/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/tests/variantstudy/__init__.py b/tests/variantstudy/__init__.py index befa122ebc..058c6b221a 100644 --- a/tests/variantstudy/__init__.py +++ b/tests/variantstudy/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/tests/variantstudy/model/__init__.py b/tests/variantstudy/model/__init__.py index befa122ebc..058c6b221a 100644 --- a/tests/variantstudy/model/__init__.py +++ b/tests/variantstudy/model/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/tests/variantstudy/model/command/__init__.py b/tests/variantstudy/model/command/__init__.py index befa122ebc..058c6b221a 100644 --- a/tests/variantstudy/model/command/__init__.py +++ b/tests/variantstudy/model/command/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. - diff --git a/tests/variantstudy/test_variant_command_extractor.py b/tests/variantstudy/test_variant_command_extractor.py index 99d89a6c76..45665cf5cf 100644 --- a/tests/variantstudy/test_variant_command_extractor.py +++ b/tests/variantstudy/test_variant_command_extractor.py @@ -10,6 +10,7 @@ # # This file is part of the Antares project. + def test_extract(): # Already covered by integration test "test_integration_variantmanager_tool" pass diff --git a/tests/worker/__init__.py b/tests/worker/__init__.py index befa122ebc..058c6b221a 100644 --- a/tests/worker/__init__.py +++ b/tests/worker/__init__.py @@ -9,4 +9,3 @@ # SPDX-License-Identifier: MPL-2.0 # # This file is part of the Antares project. -