Skip to content

Commit b4c7db6

Browse files
authored
Format files with ruff (#562)
1 parent babb477 commit b4c7db6

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

src/mcp/server/fastmcp/server.py

+1
Original file line numberDiff line numberDiff line change
@@ -466,6 +466,7 @@ async def run_stdio_async(self) -> None:
466466
async def run_sse_async(self) -> None:
467467
"""Run the server using SSE transport."""
468468
import uvicorn
469+
469470
starlette_app = self.sse_app()
470471

471472
config = uvicorn.Config(

tests/server/fastmcp/servers/test_file_server.py

+2-6
Original file line numberDiff line numberDiff line change
@@ -114,17 +114,13 @@ async def test_read_resource_file(mcp: FastMCP):
114114

115115
@pytest.mark.anyio
116116
async def test_delete_file(mcp: FastMCP, test_dir: Path):
117-
await mcp.call_tool(
118-
"delete_file", arguments={"path": str(test_dir / "example.py")}
119-
)
117+
await mcp.call_tool("delete_file", arguments={"path": str(test_dir / "example.py")})
120118
assert not (test_dir / "example.py").exists()
121119

122120

123121
@pytest.mark.anyio
124122
async def test_delete_file_and_check_resources(mcp: FastMCP, test_dir: Path):
125-
await mcp.call_tool(
126-
"delete_file", arguments={"path": str(test_dir / "example.py")}
127-
)
123+
await mcp.call_tool("delete_file", arguments={"path": str(test_dir / "example.py")})
128124
res_iter = await mcp.read_resource("file://test_dir/example.py")
129125
res_list = list(res_iter)
130126
assert len(res_list) == 1

0 commit comments

Comments
 (0)