Skip to content

Commit 2ecc431

Browse files
committed
linting
Signed-off-by: Keval Mahajan <[email protected]>
1 parent d579e8e commit 2ecc431

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

mcpgateway/bootstrap_db.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,23 @@
33
from alembic.config import Config
44
from alembic import command
55
from mcpgateway.db import Base
6-
import os, logging
6+
import os
7+
import logging
8+
79

810
def main():
911
engine = create_engine(os.environ["DATABASE_URL"])
10-
cfg = Config("/app/alembic.ini") # path in container
12+
cfg = Config("/app/alembic.ini") # path in container
1113

1214
insp = inspect(engine)
1315
if "alembic_version" not in insp.get_table_names():
1416
logging.info("Empty DB detected – creating baseline schema")
1517
Base.metadata.create_all(engine)
16-
command.stamp(cfg, "head") # record baseline
18+
command.stamp(cfg, "head") # record baseline
1719

18-
command.upgrade(cfg, "head") # apply any new revisions
20+
command.upgrade(cfg, "head") # apply any new revisions
1921
logging.info("Database ready")
2022

23+
2124
if __name__ == "__main__":
2225
main()

mcpgateway/services/gateway_service.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,6 @@ async def check_health_of_gateways(self, gateways: List[DbGateway]) -> bool:
624624
# Reuse a single HTTP client for all requests
625625
async with httpx.AsyncClient() as client:
626626
for gateway in gateways:
627-
628627
logger.debug(f"Checking health of gateway: {gateway.name} ({gateway.url})")
629628
try:
630629
# Ensure auth_value is a dict

mcpgateway/utils/db_isready.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
await wait_for_db_ready() # asynchronous
5656
wait_for_db_ready(sync=True) # synchronous / blocking
5757
"""
58+
5859
# Future
5960
from __future__ import annotations
6061

0 commit comments

Comments
 (0)