mirror of
https://github.com/aljazceru/breez-sdk-docs.git
synced 2025-12-17 13:54:20 +01:00
* don't write ruff output to file * Update ruff instructions in python README --------- Co-authored-by: ok300 <106775972+ok300@users.noreply.github.com>
890 B
890 B
Steps to run locally
- Build a python package
- By running the publish-all-platforms CI in the breez-sdk repository (use dummy binaries)
- or by downloading from Pypi
- Download the wheel artifact for your platform. For linux that is
python-wheel-3.8-manylinux_2_31_x86_64 - Unzip the artifact in the
snippets/python/packagesfolder. - Run
pip install packages/{NAME_OF_.WHL_FILE} - happy coding!
To check the syntax:
cd snippets/python
python3 -m compileall src
To check the snippet against formatting and linter rules:
cd snippets/python/src
ruff check --ignore F841 --ignore F401 --add-noqa .
and fix all occurrences of the # noqa directive.
To execute the snippets locally, in order to check for type correctness:
#!/bin/bash
export API_KEY="..."
export MNEMONIC="..."
cd snippets/python
python main.py $API_KEY $MNEMONIC