Skip to content

Commit b26430a

Browse files
markomanninenclaude
andcommitted
style: Format code with Black
Applied Black code formatter to fix CI formatting checks: - src/dap_stdio_client.py - src/mcp_server.py - tests/test_improved_error_handling.py This resolves the failing CI check for code formatting. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent a58e6da commit b26430a

3 files changed

Lines changed: 8 additions & 5 deletions

File tree

src/dap_stdio_client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -253,16 +253,16 @@ async def _recv(self) -> Dict[str, Any]:
253253
message = "Debug adapter connection closed"
254254
if exit_code is not None:
255255
if exit_code == 0:
256-
message += f" (program exited successfully with code {exit_code})"
256+
message += (
257+
f" (program exited successfully with code {exit_code})"
258+
)
257259
else:
258260
message += f" (program crashed with exit code {exit_code})"
259261

260262
if detail:
261263
message = f"{message}.\nAdapter stderr:\n{detail}"
262264

263-
message += (
264-
"\n\nTip: Use stop_on_entry=True or verify breakpoints are on executable lines"
265-
)
265+
message += "\n\nTip: Use stop_on_entry=True or verify breakpoints are on executable lines"
266266
raise EOFError(message)
267267
if line == b"\r\n":
268268
break

src/mcp_server.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -946,7 +946,9 @@ async def dap_validate_breakpoint_line(source_path: str, line: int) -> Dict[str,
946946
for i in range(line, min(line + 5, len(lines))):
947947
next_line = lines[i].strip()
948948
if next_line and not next_line.startswith("#"):
949-
preview = next_line[:50] + "..." if len(next_line) > 50 else next_line
949+
preview = (
950+
next_line[:50] + "..." if len(next_line) > 50 else next_line
951+
)
950952
suggestions.append(f"Consider line {i + 1}: {preview}")
951953
break
952954

tests/test_improved_error_handling.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Tests for improved error handling and validation features."""
2+
23
import asyncio
34
import tempfile
45
from pathlib import Path

0 commit comments

Comments
 (0)