Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/authentication/noop.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"""Manage authentication flow for FastAPI endpoints with no-op auth."""

import logging

from fastapi import Request

from constants import (
Expand All @@ -11,8 +9,9 @@
DEFAULT_VIRTUAL_PATH,
)
from authentication.interface import AuthInterface
from log import get_logger

logger = logging.getLogger(__name__)
logger = get_logger(__name__)


class NoopAuthDependency(AuthInterface): # pylint: disable=too-few-public-methods
Expand Down
5 changes: 2 additions & 3 deletions src/authentication/noop_with_token.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
- Returns a tuple: (user_id, DEFAULT_USER_NAME, user_token).
"""

import logging

from fastapi import Request

from constants import (
Expand All @@ -20,8 +18,9 @@
)
from authentication.interface import AuthInterface
from authentication.utils import extract_user_token
from log import get_logger

logger = logging.getLogger(__name__)
logger = get_logger(__name__)


class NoopWithTokenAuthDependency(
Expand Down
4 changes: 2 additions & 2 deletions src/runners/uvicorn.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
"""Uvicorn runner."""

import logging

import uvicorn

from log import get_logger
from models.config import ServiceConfiguration

logger: logging.Logger = logging.getLogger(__name__)
logger = get_logger(__name__)


def start_uvicorn(configuration: ServiceConfiguration) -> None:
Expand Down
Loading