File tree Expand file tree Collapse file tree 2 files changed +9
-10
lines changed Expand file tree Collapse file tree 2 files changed +9
-10
lines changed Original file line number Diff line number Diff line change 57
57
- id : ruff
58
58
setup : pip install ruff
59
59
cmd : |
60
- ruff check .
61
- ruff format --check .
60
+ ruff check mcpgateway
62
61
63
62
# - id: pylint
64
63
# setup: pip install pylint
Original file line number Diff line number Diff line change @@ -50,22 +50,22 @@ def __init__(self, name: str):
50
50
51
51
# decorator helpers just hand the coroutine straight back
52
52
def list_tools (self ):
53
- return lambda fn : fn # noqa: E704
53
+ return lambda fn : fn
54
54
55
55
def call_tool (self ):
56
- return lambda fn : fn # noqa: E704
56
+ return lambda fn : fn
57
57
58
58
def list_resources (self ):
59
- return lambda fn : fn # noqa: E704
59
+ return lambda fn : fn
60
60
61
61
def read_resource (self ):
62
- return lambda fn : fn # noqa: E704
62
+ return lambda fn : fn
63
63
64
64
def list_prompts (self ):
65
- return lambda fn : fn # noqa: E704
65
+ return lambda fn : fn
66
66
67
67
def get_prompt (self ):
68
- return lambda fn : fn # noqa: E704
68
+ return lambda fn : fn
69
69
70
70
def get_capabilities (self , ** _ ): # used by wrapper
71
71
return {}
@@ -494,10 +494,10 @@ async def _meta(_ids):
494
494
@pytest .mark .asyncio
495
495
async def test_handle_list_prompts (monkeypatch , wrapper ):
496
496
async def _ids (_ ):
497
- return ["p1" ] # noqa: E704
497
+ return ["p1" ]
498
498
499
499
async def _meta (_ ):
500
- return [{"name" : "Hello" , "description" : "" , "arguments" : []}] # noqa: E704
500
+ return [{"name" : "Hello" , "description" : "" , "arguments" : []}]
501
501
502
502
monkeypatch .setattr (wrapper , "get_prompts_from_mcp_server" , _ids )
503
503
monkeypatch .setattr (wrapper , "prompts_metadata" , _meta )
You can’t perform that action at this time.
0 commit comments