Skip to content

Commit 1679ac3

Browse files
committed
chore(Makefile): add isort to format target for consistent import ordering
style(server.py): reorder import statements for better organization and clarity style(shell_executor.py): reorder import statements for better organization and clarity style(test_server.py): add a blank line for consistency with PEP 8 style guide style(test_shell_executor.py): add a blank line for consistency with PEP 8 style guide
1 parent eb70cbc commit 1679ac3

File tree

5 files changed

+9
-4
lines changed

5 files changed

+9
-4
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ test:
55

66
format:
77
black .
8+
isort .
89

910
lint:
1011
ruff check .

mcp_shell_server/server.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
import logging
2+
import traceback
23
from collections.abc import Sequence
34
from typing import Any
4-
import traceback
5+
56
from mcp.server import Server
6-
from mcp.types import Tool, TextContent
7+
from mcp.types import TextContent, Tool
8+
79
from .shell_executor import ShellExecutor
810

911
# Configure logging

mcp_shell_server/shell_executor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
import asyncio
12
import os
23
import time
3-
import asyncio
4-
from typing import Dict, List, Optional, Any
4+
from typing import Any, Dict, List, Optional
55

66

77
class ShellExecutor:

tests/test_server.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import pytest
22
from mcp.types import TextContent, Tool
3+
34
from mcp_shell_server.server import call_tool, list_tools
45

56

tests/test_shell_executor.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import pytest
2+
23
from mcp_shell_server.shell_executor import ShellExecutor
34

45

0 commit comments

Comments
 (0)