Skip to content

Commit d7432b1

Browse files
committed
fixed flake warnings
Signed-off-by: Veeresh K <[email protected]>
1 parent 4eeb973 commit d7432b1

File tree

4 files changed

+19
-10
lines changed

4 files changed

+19
-10
lines changed

mcpgateway/main.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@
9898
get_streamable_http_session,
9999
get_tag_service,
100100
get_tool_service,
101-
cors_origins,
102101
)
103102

104103
# middleware imports

mcpgateway/middleware/versioning.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,8 @@
1212
class VersioningConfig:
1313
"""
1414
Configuration class for API versioning and experimental access control.
15-
16-
This class centralizes settings for handling legacy API paths,
17-
deprecation warnings, and access to experimental features. It allows
15+
This class centralizes settings for handling legacy API paths,
16+
deprecation warnings, and access to experimental features. It allows
1817
middleware and routers to enforce versioning rules consistently.
1918
2019
Attributes:
@@ -37,7 +36,6 @@ class VersioningConfig:
3736
pass
3837
"""
3938

40-
4139
# 0.6.0 settings
4240
enable_legacy_support: bool = True # Still serve legacy in 0.6.0
4341
enable_deprecation_headers: bool = True # Loud warnings

mcpgateway/routers/current/__init__.py

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1-
"""Current router imports for MCP Gateway.
1+
# -*- coding: utf-8 -*-
2+
"""MCP Gateway Current Routers - Current API version router imports.
23
3-
Provides access to v1 routers and utilities for the current API version.
4+
Copyright 2025
5+
SPDX-License-Identifier: Apache-2.0
6+
7+
Provides access to routers and utilities for the current API version.
48
"""
59

610
# For test router instances -> tests/unit/mcpgateway/test_coverage_push
@@ -13,6 +17,14 @@
1317
from mcpgateway.routers.v1.prompts import prompt_router
1418
from mcpgateway.routers.v1.gateway import gateway_router
1519

20+
_ = protocol_router
21+
_ = resource_router
22+
_ = root_router
23+
_ = tool_router
24+
_ = export_import_router
25+
_ = prompt_router
26+
_ = gateway_router
27+
1628
# For utility router
1729
from mcpgateway.routers.v1.protocol import initialize
1830

mcpgateway/routers/setup_routes.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def setup_v1_routes(app: FastAPI) -> None:
6868
logger.debug("OAuth router not available")
6969

7070
# Include reverse proxy router if enabled
71-
try:
71+
try:
7272
app.include_router(reverse_proxy_router)
7373
logger.info("Reverse proxy router included")
7474
except ImportError:
@@ -88,7 +88,7 @@ def setup_experimental_routes(_app: FastAPI) -> None:
8888
"""Configure experimental API routes.
8989
9090
Args:
91-
app: FastAPI application instance to configure
91+
_app: FastAPI application instance to configure
9292
"""
9393
# Register experimental routers here
9494

@@ -97,7 +97,7 @@ def setup_legacy_deprecation_routes(_app: FastAPI) -> None:
9797
"""Configure legacy route deprecation warnings.
9898
9999
Args:
100-
app: FastAPI application instance to configure
100+
_app: FastAPI application instance to configure
101101
"""
102102

103103
# Legacy routes are now handled by middleware instead of conflicting endpoints

0 commit comments

Comments
 (0)