From a68dbdceca71c8f91bca44285b14f7ec78b679e9 Mon Sep 17 00:00:00 2001 From: rednafi Date: Sat, 26 Oct 2024 00:57:10 +0200 Subject: [PATCH] Lint --- svc/core/logger.py | 1 + svc/routes/views.py | 4 +++- svc/tests/test_logger.py | 2 -- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/svc/core/logger.py b/svc/core/logger.py index f81f8d5..6f09c2d 100644 --- a/svc/core/logger.py +++ b/svc/core/logger.py @@ -1,5 +1,6 @@ import logging + def configure_logger() -> None: """Configure a custom logger.""" diff --git a/svc/routes/views.py b/svc/routes/views.py index 94e0213..1d975da 100755 --- a/svc/routes/views.py +++ b/svc/routes/views.py @@ -1,15 +1,17 @@ from __future__ import annotations +import logging + from fastapi import APIRouter, Depends from svc.apis.api_a.mainmod import main_func as main_func_a from svc.apis.api_b.mainmod import main_func as main_func_b from svc.core.auth import get_current_user -import logging router = APIRouter() logger = logging.getLogger(__name__) + @router.get("/") async def index() -> dict[str, str]: return { diff --git a/svc/tests/test_logger.py b/svc/tests/test_logger.py index ec60989..bc4fce7 100644 --- a/svc/tests/test_logger.py +++ b/svc/tests/test_logger.py @@ -1,5 +1,3 @@ -import logging - """Test suite for the logger module.""" import logging