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:
@@ -268,7 +268,8 @@ def _make_handler_under_test(handler_name: str):
|
||||
This works because every _handle_* method starts with a params dict check
|
||||
before doing any file I/O or heavy imports.
|
||||
"""
|
||||
import importlib.util, types
|
||||
import importlib.util
|
||||
import types
|
||||
|
||||
# We monkey-patch sys.modules to avoid pcbnew/skip side effects
|
||||
stubs = {}
|
||||
@@ -301,8 +302,8 @@ class TestHandlerParamValidation:
|
||||
|
||||
def _make_iface_stub(self):
|
||||
"""Return a stub that exposes only the handler methods under test."""
|
||||
import types
|
||||
import importlib
|
||||
import types
|
||||
|
||||
# Build a minimal namespace that satisfies the imports inside each handler
|
||||
stub_mod = types.ModuleType("_handler_stubs")
|
||||
|
||||
Reference in New Issue
Block a user