49 lines
806 B
Makefile
49 lines
806 B
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
|
|
|
|
test:
|
|
LNBITS_DATA_FOLDER="./tests/data" \
|
|
PYTHONUNBUFFERED=1 \
|
|
DEBUG=true \
|
|
uv run 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"
|