- Python 3.10 or newer
- uv for dependency management
Clone the repository and install all dependencies including dev tools:
git clone https://github.com/openfaas/python-sdk
cd python-sdk
uv syncuv run pytest tests/Check for lint issues:
uv run ruff check .Fix lint issues automatically:
uv run ruff check --fix .Check formatting:
uv run ruff format --check .Apply formatting:
uv run ruff format .uv run pyrightAll of the above are run automatically on every push and pull request via GitHub Actions. The workflow runs:
- Lint —
ruff checkandruff format --check - Type check —
pyright - Test —
pytestacross Python 3.10, 3.11, 3.12, and 3.13