style: sort Python imports with isort
Add isort configuration (profile=black, line_length=100) to pyproject.toml, add isort pre-commit hook, and auto-sort imports across all Python source files. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -119,7 +119,8 @@ class TestHandlerDispatch:
|
||||
@pytest.fixture(autouse=True)
|
||||
def load_handler_map(self):
|
||||
# Import only the dispatch table without initialising KiCAD connections
|
||||
import importlib, types
|
||||
import importlib
|
||||
import types
|
||||
|
||||
# Patch heavy imports before loading kicad_interface
|
||||
for mod in ["pcbnew", "skip"]:
|
||||
@@ -334,6 +335,7 @@ class TestPinSnapping:
|
||||
|
||||
# Re-import so the patched skip.Schematic is used
|
||||
import importlib
|
||||
|
||||
import kicad_interface
|
||||
|
||||
importlib.reload(kicad_interface)
|
||||
|
||||
Reference in New Issue
Block a user