Skip to content

Commit 7ea56fc

Browse files
committed
formatting
1 parent 0f02155 commit 7ea56fc

File tree

3 files changed

+33
-9
lines changed

3 files changed

+33
-9
lines changed

pyproject.toml

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ dependencies = [
88
"mcp>=1.0.0",
99
"python-dotenv>=1.0.1",
1010
"requests>=2.32.3",
11+
"ruff>=0.8.1",
1112
]
1213
[[project.authors]]
1314
name = "anjor"

src/coinmarket_service/server.py

+5-9
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@
1818
async def get_currency_listings():
1919
url = 'https://pro-api.coinmarketcap.com/v1/cryptocurrency/listings/latest'
2020
parameters = {
21-
'start':'1',
22-
'limit':'2',
23-
'convert':'USD'
21+
'start':'1',
22+
'limit':'2',
23+
'convert':'USD'
2424
}
2525
headers = {
26-
'Accepts': 'application/json',
27-
'X-CMC_PRO_API_KEY': API_KEY,
26+
'Accepts': 'application/json',
27+
'X-CMC_PRO_API_KEY': API_KEY,
2828
}
2929

3030
response = requests.get(url, headers=headers, params=parameters)
@@ -50,10 +50,6 @@ async def handle_list_resources() -> list[types.Resource]:
5050

5151
@server.read_resource()
5252
async def handle_read_resource(uri: AnyUrl) -> str:
53-
"""
54-
Read a specific note's content by its URI.
55-
The note name is extracted from the URI host component.
56-
"""
5753
if uri.scheme != "coinmarket":
5854
raise ValueError(f"Unsupported scheme: {uri.scheme}")
5955
if uri.path != "/listings":

uv.lock

+27
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)