mirror of
https://github.com/smittix/intercept.git
synced 2026-07-06 16:48:12 -07:00
style: apply ruff-format to entire codebase
First-time run of ruff-format via pre-commit hook normalises quote style, trailing commas, and whitespace across 188 Python files. No logic changes. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -107,8 +107,9 @@ class AsyncWorker:
|
||||
else:
|
||||
# Auto-detect: prefer ttyUSB0, then first available port
|
||||
candidates = list_serial_ports()
|
||||
port = next((p for p in candidates if "ttyUSB0" in p), None) or \
|
||||
(candidates[0] if candidates else "/dev/ttyUSB0")
|
||||
port = next((p for p in candidates if "ttyUSB0" in p), None) or (
|
||||
candidates[0] if candidates else "/dev/ttyUSB0"
|
||||
)
|
||||
self._mc = await MeshCore.create_serial(port=port, baudrate=cfg.baud, debug=False)
|
||||
transport, device = "serial", port
|
||||
elif isinstance(cfg, TCPConfig):
|
||||
|
||||
Reference in New Issue
Block a user