mirror of
https://github.com/meshtastic/python.git
synced 2025-12-24 00:17:54 -05:00
1.3 KiB
1.3 KiB
Contributing to Meshtastic Python
Development resources
- API Documentation
- Meshtastic Python Development
- Building Meshtastic Python
- Using the Meshtastic Python Library
How to check your code (pytest/pylint) before a PR
- Pre-requisites
- also execute
poetry install --all-extras --with dev,powermonfor all optional dependencies - check your code with github ci actions locally
- You need to have act installed. You can get it at https://nektosact.com/
- on linux:
act -P ubuntu-latest=-self-hosted --matrix "python-version:3.12" - on windows:
- linux checks (linux docker):
act --matrix "python-version:3.12" - windows checks (windows host):
act -P ubuntu-latest=-self-hosted --matrix "python-version:3.12"
- linux checks (linux docker):
- or run all locally:
- run
poetry run pylint meshtastic examples/ --ignore-patterns ".*_pb2.pyi?$" - run
poetry run mypy meshtastic/ - run
poetry run pytest - more commands see CI workflow
- run