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:
James Smith
2026-07-05 14:48:11 +01:00
parent 82e64104fe
commit 96172ca593
189 changed files with 19883 additions and 19552 deletions
+3 -2
View File
@@ -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):