diff --git a/Makefile b/Makefile index 0fac253..d7e2d37 100644 --- a/Makefile +++ b/Makefile @@ -30,10 +30,15 @@ checkblack: checkeditorconfig: editorconfig-checker +# The uv env resolves *upstream* lnbits from PyPI, which lacks the aio fork's +# modules (lnbits.core.signers, …). Point PYTHONPATH at a fork checkout so +# `import lnbits` picks it up; override with LNBITS_SRC=/path/to/lnbits. +LNBITS_SRC ?= $(HOME)/dev/lnbits/dev test: + PYTHONPATH=$(LNBITS_SRC) \ PYTHONUNBUFFERED=1 \ DEBUG=true \ - uv run pytest + uv run --frozen pytest install-pre-commit-hook: @echo "Installing pre-commit hook to git" @echo "Uninstall the hook with uv run pre-commit uninstall"