add examples; add Makefile

This commit is contained in:
Mike Kinney
2021-12-21 11:21:37 -08:00
parent 1acc193248
commit 0701d400ff
7 changed files with 131 additions and 1 deletions

22
Makefile Normal file
View File

@@ -0,0 +1,22 @@
# unit test
test:
pytest
# local install
install:
pip install .
# lint the codebase
lint:
pylint meshtastic
cov:
pytest --cov-report html --cov=meshtastic
# on mac, this will open the coverage report in a browser
open htmlcov/index.html
# run cli examples
examples: FORCE
pytest -mexamples
FORCE: ;