From 88c8acbc5a6df6458c85a9a57afd8d03de0515ef Mon Sep 17 00:00:00 2001 From: Dmitry Pimenov Date: Tue, 25 Mar 2025 16:34:00 -0700 Subject: [PATCH] fixing lint issues --- examples/mcp/git_example/main.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/mcp/git_example/main.py b/examples/mcp/git_example/main.py index 5ce747a..cfc1510 100644 --- a/examples/mcp/git_example/main.py +++ b/examples/mcp/git_example/main.py @@ -1,10 +1,10 @@ import asyncio -import os import shutil from agents import Agent, Runner, trace from agents.mcp import MCPServer, MCPServerStdio + async def run(mcp_server: MCPServer, directory_path: str): agent = Agent( name="Assistant", @@ -12,13 +12,13 @@ async def run(mcp_server: MCPServer, directory_path: str): mcp_servers=[mcp_server], ) - message = f"Who's the most frequent contributor?" + message = "Who's the most frequent contributor?" print("\n" + "-" * 40) print(f"Running: {message}") result = await Runner.run(starting_agent=agent, input=message) print(result.final_output) - message = f"Summarize the last change in the repository." + message = "Summarize the last change in the repository." print("\n" + "-" * 40) print(f"Running: {message}") result = await Runner.run(starting_agent=agent, input=message) @@ -45,4 +45,4 @@ if __name__ == "__main__": if not shutil.which("uvx"): raise RuntimeError("uvx is not installed. Please install it with `pip install uvx`.") - asyncio.run(main()) \ No newline at end of file + asyncio.run(main())