chore: run tests against the aio lnbits fork (PYTHONPATH), not PyPI lnbits
Some checks failed
lint.yml / chore: run tests against the aio lnbits fork (PYTHONPATH), not PyPI lnbits (pull_request) Failing after 0s

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYwoAkZZmXMMmaBp4WGUBo
This commit is contained in:
Padreug 2026-09-06 19:56:55 +02:00
commit bebf7becc8

View file

@ -30,10 +30,15 @@ checkblack:
checkeditorconfig: checkeditorconfig:
editorconfig-checker 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: test:
PYTHONPATH=$(LNBITS_SRC) \
PYTHONUNBUFFERED=1 \ PYTHONUNBUFFERED=1 \
DEBUG=true \ DEBUG=true \
uv run pytest uv run --frozen pytest
install-pre-commit-hook: install-pre-commit-hook:
@echo "Installing pre-commit hook to git" @echo "Installing pre-commit hook to git"
@echo "Uninstall the hook with uv run pre-commit uninstall" @echo "Uninstall the hook with uv run pre-commit uninstall"