Files
andros 435f66864e Fix channel send crash, add tests, pre-commit and uv setup
- meshtastic-bridge.py: stop passing destinationId=None to sendText for
  channel messages; the meshtastic library expects BROADCAST_ADDR or no
  argument, not None, causing a silent crash on group sends
- meshtastic-bridge.py: subscribe to meshtastic.connection.lost to emit
  a proper disconnect event before exiting; wrap main loop in try/except
  to surface unexpected errors as JSON
- meshtastic.el: split meshtastic-python-executable on spaces so that
  multi-word values like "uv run python" work with make-process; bind
  default-directory to the script directory so uv finds pyproject.toml;
  show non-JSON bridge output in *Messages* instead of discarding it
- tests/test_bridge.py: 46 pytest tests covering all bridge functions
  and the full stdin command loop, including a regression test for the
  destinationId=None crash
- pyproject.toml: add pytest and ruff as dev dependencies
- .pre-commit-config.yaml: ruff lint and format via astral-sh hook
- .gitignore: exclude .venv, bytecode, uv artefacts and pytest cache
2026-05-20 16:48:48 +02:00

0 lines
0 B
Python