Skip to content

Commit

Permalink
Run ruff manually to sort imports
Browse files Browse the repository at this point in the history
  • Loading branch information
leplatrem committed Aug 6, 2024
1 parent 32a8582 commit 2f73014
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions ctms/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import sys
import time


import uvicorn
from dockerflow.fastapi import router as dockerflow_router
from dockerflow.fastapi.middleware import RequestIdMiddleware
Expand All @@ -12,7 +11,8 @@
from .config import get_version
from .database import SessionLocal
from .exception_capture import init_sentry
from .log import CONFIG as LOG_CONFIG, context_from_request, get_log_line
from .log import CONFIG as LOG_CONFIG
from .log import context_from_request, get_log_line
from .metrics import (
METRICS_REGISTRY,
emit_response_metrics,
Expand All @@ -23,7 +23,6 @@
)
from .routers import contacts, platform


logging.config.dictConfig(LOG_CONFIG)

web_logger = logging.getLogger("ctms.web")
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_auth.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Test authentication"""

from datetime import datetime, timedelta, timezone
import logging
from datetime import datetime, timedelta, timezone

import pytest
from jose import jwt
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_log.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
from unittest.mock import patch

import pytest
from requests.auth import HTTPBasicAuth
from dockerflow.logging import JsonLogFormatter
from requests.auth import HTTPBasicAuth


def test_request_log(client, email_factory, caplog):
Expand Down

0 comments on commit 2f73014

Please sign in to comment.