Skip to content

Commit

Permalink
[chore] Organise imports
Browse files Browse the repository at this point in the history
  • Loading branch information
cdinu committed Jan 6, 2025
1 parent 18dc00a commit c3a4c39
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
21 changes: 10 additions & 11 deletions web/participant-self-care/participant_self_care/app.py
Original file line number Diff line number Diff line change
@@ -1,29 +1,28 @@
from collections.abc import AsyncGenerator
from contextlib import asynccontextmanager
import pathlib
import time
from collections.abc import AsyncGenerator
from contextlib import asynccontextmanager
from typing import Any, Dict
from dotenv import load_dotenv

from authlib.integrations.starlette_client import OAuth, OAuthError
from dotenv import load_dotenv
from fastapi import Depends, FastAPI, Response
from fastapi.staticfiles import StaticFiles
from participant_self_care.tado_decorator import require_tado_auth
from rich import print
from starlette.config import Config
from starlette.middleware.sessions import SessionMiddleware
from starlette.requests import Request
from starlette.responses import HTMLResponse, RedirectResponse
from tadoclient.client import TadoClient
from tadoclient.models import TadoClientConfig, TadoToken

from participant_self_care.users.db import User, create_db_and_tables
from participant_self_care.users.schemas import UserCreate, UserRead, UserUpdate
from participant_self_care.users.users import (
auth_backend,
current_active_user,
fastapi_users,
)
from rich import print
from starlette.config import Config
from starlette.middleware.sessions import SessionMiddleware
from starlette.requests import Request
from starlette.responses import HTMLResponse, RedirectResponse
from tadoclient.client import TadoClient
from tadoclient.models import TadoClientConfig, TadoToken


@asynccontextmanager
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from collections.abc import AsyncGenerator
import uuid
import os
import uuid
from collections.abc import AsyncGenerator
from typing import Optional

from fastapi import Depends, Request, Response
Expand All @@ -11,7 +11,6 @@
JWTStrategy,
)
from fastapi_users.db import SQLAlchemyUserDatabase

from participant_self_care.users.db import User, get_user_db


Expand Down

0 comments on commit c3a4c39

Please sign in to comment.