Skip to content

Commit

Permalink
linter
Browse files Browse the repository at this point in the history
  • Loading branch information
sanderegg committed Dec 3, 2024
1 parent a529200 commit 7f5d94f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,8 @@
from models_library.projects import ProjectID
from models_library.projects_nodes_io import NodeID
from pydantic.types import PositiveInt
from simcore_service_api_server.exceptions.backend_errors import (
ProjectAlreadyStartedError,
)

from ...exceptions.backend_errors import ProjectAlreadyStartedError
from ...exceptions.service_errors_utils import DEFAULT_BACKEND_SERVICE_STATUS_CODES
from ...models.basic_types import VersionStr
from ...models.schemas.errors import ErrorGet
Expand Down Expand Up @@ -199,7 +197,9 @@ async def start_job(
user_id: Annotated[PositiveInt, Depends(get_current_user_id)],
director2_api: Annotated[DirectorV2Api, Depends(get_api_client(DirectorV2Api))],
webserver_api: Annotated[AuthSession, Depends(get_webserver_session)],
cluster_id: Annotated[ClusterID | None, Query(deprecated=True)] = None,
cluster_id: Annotated[ # pytest: disable=unused-argument # noqa: ARG001
ClusterID | None, Query(deprecated=True)
] = None,
):
job_name = _compose_job_resource_name(solver_key, version, job_id)
_logger.debug("Start Job '%s'", job_name)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,11 @@
from models_library.projects_nodes_io import NodeID
from pydantic import PositiveInt
from servicelib.logging_utils import log_context
from simcore_service_api_server.api.routes.solvers_jobs import JOBS_STATUS_CODES
from simcore_service_api_server.exceptions.backend_errors import (
ProjectAlreadyStartedError,
)

from ...api.dependencies.authentication import get_current_user_id
from ...api.dependencies.services import get_api_client
from ...api.dependencies.webserver import get_webserver_session
from ...exceptions.backend_errors import ProjectAlreadyStartedError
from ...models.pagination import Page, PaginationParams
from ...models.schemas.errors import ErrorGet
from ...models.schemas.jobs import (
Expand Down Expand Up @@ -53,6 +50,7 @@
from ..dependencies.application import get_reverse_url_mapper
from ._common import API_SERVER_DEV_FEATURES_ENABLED
from ._constants import FMSG_CHANGELOG_CHANGED_IN_VERSION, FMSG_CHANGELOG_NEW_IN_VERSION
from .solvers_jobs import JOBS_STATUS_CODES

_logger = logging.getLogger(__name__)
router = APIRouter()
Expand Down Expand Up @@ -222,7 +220,9 @@ async def start_study_job(
user_id: Annotated[PositiveInt, Depends(get_current_user_id)],
webserver_api: Annotated[AuthSession, Depends(get_webserver_session)],
director2_api: Annotated[DirectorV2Api, Depends(get_api_client(DirectorV2Api))],
cluster_id: Annotated[ClusterID | None, Query(deprecated=True)] = None,
cluster_id: Annotated[ # pylint: disable=unused-argument # noqa: ARG001
ClusterID | None, Query(deprecated=True)
] = None,
):
job_name = _compose_job_resource_name(study_id, job_id)
with log_context(_logger, logging.DEBUG, f"Starting Job '{job_name}'"):
Expand Down

0 comments on commit 7f5d94f

Please sign in to comment.