mirror of
https://github.com/aljazceru/nutshell.git
synced 2026-01-11 04:34:20 +01:00
* mint does not start yet * fix import * revert mint db migrations * handle zero fee case * cli: adjust fee message * wallet: replace requests with httpx * clean up * rename http client decorator * fix pending check in main, todo: TEST PROXIES WITH HTTPX * fix up * use httpx for nostr as well * update packages to same versions as https://github.com/lnbits/lnbits/pull/1609/files * fix proof deserialization * check for string * tests passing * adjust wallet api tests * lockfile * add correct responses to Lightning interface and delete melt_id for proofs for which the payent has failed * fix create_invoice checking_id response * migrations atomic * proofs are stored automatically when created * make format * use bolt11 lib * stricter type checking * add fee response to payments * assert fees in test_melt * test that mint_id and melt_id is stored correctly in proofs and proofs_used * remove traces * refactor: Lightning interface into own file and LedgerCrud with typing * fix tests * fix payment response * rename variable
51 lines
998 B
Makefile
51 lines
998 B
Makefile
ruff:
|
|
poetry run ruff check . --fix
|
|
|
|
ruff-check:
|
|
poetry run ruff check .
|
|
|
|
black:
|
|
poetry run black .
|
|
|
|
black-check:
|
|
poetry run black . --check
|
|
|
|
mypy:
|
|
poetry run mypy cashu --ignore-missing --check-untyped-defs
|
|
|
|
format: black ruff
|
|
|
|
check: black-check ruff-check mypy
|
|
|
|
clean:
|
|
rm -r cashu.egg-info/ || true
|
|
find . -name ".DS_Store" -exec rm -f {} \; || true
|
|
rm -rf dist || true
|
|
rm -rf build || true
|
|
|
|
package:
|
|
poetry export -f requirements.txt --without-hashes --output requirements.txt
|
|
make clean
|
|
python setup.py sdist bdist_wheel
|
|
|
|
test:
|
|
poetry run pytest tests --cov-report xml --cov cashu
|
|
|
|
install:
|
|
make clean
|
|
python setup.py sdist bdist_wheel
|
|
pip install --upgrade dist/*
|
|
|
|
upload:
|
|
make clean
|
|
python setup.py sdist bdist_wheel
|
|
twine upload --repository pypi dist/*
|
|
|
|
install-pre-commit-hook:
|
|
@echo "Installing pre-commit hook to git"
|
|
@echo "Uninstall the hook with poetry run pre-commit uninstall"
|
|
poetry run pre-commit install
|
|
|
|
pre-commit:
|
|
poetry run pre-commit run --all-files
|