Files
nutshell/Makefile
dni ⚡ 0a5beb75a2 [FEAT] Improve tests (#296)
* test cli arent async tests

* unused SERVER_ENDPOINT var

* async test werent marked async

* make test didnt use correct ports

* enable more verbose test logging

* refactor conftest variable

* not needed anymore are set in conftest

* using test_data now for conftest

* formatting

* comment out invalid hex

* remove test dir before creating it to be sure

* keep data from altest testrun and ad test_data to ignore

* ignore error for CI

* add duplicate env var

* fix confest

* Update pyproject.toml

* fix up tests

* short p2pk locktimes for faster tests

---------

Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com>
2023-08-06 18:35:34 +02:00

54 lines
1.1 KiB
Makefile

isort:
poetry run isort --profile black . --skip cashu/nostr
isort-check:
poetry run isort --profile black --check-only . --skip cashu/nostr
black:
poetry run black . --exclude cashu/nostr
black-check:
poetry run black . --exclude cashu/nostr --check
mypy:
poetry run mypy cashu --ignore-missing
flake8:
poetry run flake8 cashu
format: isort black
check: isort-check black-check flake8 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