Skip to content

Commit 2452b2c

Browse files
committed
Adjusted formatting
1 parent 1508c67 commit 2452b2c

5 files changed

Lines changed: 13 additions & 13 deletions

File tree

app/apis/debug/services/get_debug_info_service.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
1-
from fastapi import APIRouter, status
2-
31
import os
42
import platform
53
import sys
4+
65
import psutil
6+
from fastapi import APIRouter, status
77

88
router = APIRouter()
99

1010

11-
@router.get(
12-
"/debug", status_code=status.HTTP_200_OK
13-
)
11+
@router.get("/debug", status_code=status.HTTP_200_OK)
1412
def get_debug_info_service():
1513
os_info = {
1614
"system": platform.system(),

app/apis/orders/services/get_orders_for_delivery_service.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ def get_orders(
2121
limit: int = 100,
2222
db: Session = Depends(get_db),
2323
):
24-
'''
25-
This is a dedicated endpoint for delivery services to integrate with
26-
the Restaurant. Delivery services can use this endpoint to get a list of
24+
"""
25+
This is a dedicated endpoint for delivery services to integrate with
26+
the Restaurant. Delivery services can use this endpoint to get a list of
2727
latest orders with their details.
28-
'''
28+
"""
2929
orders = (
3030
db.query(Order)
3131
.order_by(Order.date_ordered.desc())

app/apis/router.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
from apis.admin.service import router as admin_router
22
from apis.auth.service import router as auth_router
3+
from apis.debug.service import router as debug_router
34
from apis.healthcheck.service import router as healthcheck_router
45
from apis.menu.service import router as menu_router
56
from apis.orders.service import router as orders_router
67
from apis.users.service import router as users_router
7-
from apis.debug.service import router as debug_router
88
from fastapi import APIRouter
99

1010
api_router = APIRouter()
1111
api_router.include_router(healthcheck_router, prefix="", tags=["healthcheck"])
12-
api_router.include_router(debug_router, prefix="", tags=["debug"], include_in_schema=False)
12+
api_router.include_router(
13+
debug_router, prefix="", tags=["debug"], include_in_schema=False
14+
)
1315
api_router.include_router(menu_router, prefix="", tags=["menu"])
1416
api_router.include_router(orders_router, prefix="", tags=["orders"])
1517
api_router.include_router(auth_router, prefix="", tags=["auth"])

app/main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
from init_app import init_app
21
from init import load_initial_data
2+
from init_app import init_app
33

44

55
def start_application():
66
app = init_app()
77
load_initial_data()
88
return app
99

10+
1011
app = start_application()

app/tests/conftest.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
from sqlalchemy.orm import sessionmaker
99
from sqlalchemy.pool import StaticPool
1010

11-
1211
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
1312
# this is to include app dir in sys.path so that we can import from db,main.py
1413

0 commit comments

Comments
 (0)