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

25 lines
393 B
TOML

[project]
name = "meshtastic-el"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.13"
dependencies = [
"meshtastic>=2.7.8",
]
[dependency-groups]
dev = [
"pytest>=8.0",
"ruff>=0.9",
]
[tool.pytest.ini_options]
testpaths = ["tests"]
[tool.ruff]
line-length = 100
[tool.ruff.lint]
select = ["E", "F", "W", "I", "UP", "ARG"]