Refactor print statements for consistency and clarity across multiple files; remove unnecessary imports and improve code readability in pin_locator.py, routing.py, symbol_creator.py, wire_manager.py, factory.py, ipc_backend.py, kicad_interface.py, resource_definitions.py, test_ipc_backend.py, kicad_process.py, platform_helper.py, test_platform_helper.py. Add French README for KiCAD MCP Server with detailed features, installation instructions, and usage examples.

This commit is contained in:
L'électron rare
2026-03-26 07:58:28 +01:00
parent 564f5ac955
commit a8e4de917f
28 changed files with 1833 additions and 940 deletions
-1
View File
@@ -6,7 +6,6 @@ Auto-detects available backends and provides fallback mechanism.
import os
import logging
from typing import Optional
from pathlib import Path
from kicad_api.base import KiCADBackend, APINotAvailableError
+2 -3
View File
@@ -582,7 +582,7 @@ class IPCBoardAPI(BoardAPI):
# Get the pcbnew board instance
# We need to get the actual board file path
project = board.get_project()
board.get_project()
board_path = None
# Try to get the board path from kipy
@@ -1089,7 +1089,7 @@ class IPCBoardAPI(BoardAPI):
"""
try:
from kipy.board_types import Zone, ZoneFillMode, ZoneType
from kipy.geometry import PolyLine, PolyLineNode, Vector2
from kipy.geometry import PolyLine, PolyLineNode
from kipy.util.units import from_mm
from kipy.proto.board.board_types_pb2 import BoardLayer
@@ -1174,7 +1174,6 @@ class IPCBoardAPI(BoardAPI):
def get_zones(self) -> List[Dict[str, Any]]:
"""Get all zones on the board."""
try:
from kipy.util.units import to_mm
board = self._get_board()
zones = board.get_zones()