435f66864e
- 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
8 lines
153 B
YAML
8 lines
153 B
YAML
repos:
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
rev: v0.9.10
|
|
hooks:
|
|
- id: ruff
|
|
args: [--fix]
|
|
- id: ruff-format
|