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
52 lines
1 KiB
Makefile
52 lines
1 KiB
Makefile
all: format check
|
|
|
|
format: prettier black ruff
|
|
|
|
check: mypy pyright checkblack checkruff checkprettier
|
|
|
|
prettier:
|
|
uv run ./node_modules/.bin/prettier --write .
|
|
pyright:
|
|
uv run ./node_modules/.bin/pyright
|
|
|
|
mypy:
|
|
uv run mypy .
|
|
|
|
black:
|
|
uv run black .
|
|
|
|
ruff:
|
|
uv run ruff check . --fix
|
|
|
|
checkruff:
|
|
uv run ruff check .
|
|
|
|
checkprettier:
|
|
uv run ./node_modules/.bin/prettier --check .
|
|
|
|
checkblack:
|
|
uv run black --check .
|
|
|
|
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 --frozen pytest
|
|
install-pre-commit-hook:
|
|
@echo "Installing pre-commit hook to git"
|
|
@echo "Uninstall the hook with uv run pre-commit uninstall"
|
|
uv run pre-commit install
|
|
|
|
pre-commit:
|
|
uv run pre-commit run --all-files
|
|
|
|
|
|
checkbundle:
|
|
@echo "skipping checkbundle"
|