From 462fffbeaad2d668f3426c3862fc7900da08a834 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?dni=20=E2=9A=A1?= Date: Mon, 25 Jul 2022 15:08:30 +0200 Subject: [PATCH] .gitignore coverage.xml + do not delete mock_data.zip (#779) * add coverage.xml to gitignore * fix deleting mock_data.zip Co-authored-by: dni --- .gitignore | 1 + Makefile | 7 ++----- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 5b619912..855e8737 100644 --- a/.gitignore +++ b/.gitignore @@ -31,6 +31,7 @@ venv __bundle__ +coverage.xml node_modules lnbits/static/bundle.* docker diff --git a/Makefile b/Makefile index 5cc3f050..2873ae77 100644 --- a/Makefile +++ b/Makefile @@ -17,7 +17,7 @@ mypy: $(shell find lnbits -name "*.py") ./venv/bin/mypy lnbits/core ./venv/bin/mypy lnbits/extensions/* -isort: $(shell find lnbits -name "*.py") +isort: $(shell find lnbits -name "*.py") ./venv/bin/isort --profile black lnbits checkprettier: $(shell find lnbits -name "*.js" -name ".html") @@ -36,7 +36,6 @@ requirements.txt: Pipfile.lock cat Pipfile.lock | jq -r '.default | map_values(.version) | to_entries | map("\(.key)\(.value)") | join("\n")' > requirements.txt test: - rm -rf ./tests/data mkdir -p ./tests/data LNBITS_BACKEND_WALLET_CLASS="FakeWallet" \ FAKE_WALLET_SECRET="ToTheMoon1" \ @@ -45,14 +44,12 @@ test: ./venv/bin/pytest --durations=1 -s --cov=lnbits --cov-report=xml tests test-real-wallet: - rm -rf ./tests/data mkdir -p ./tests/data LNBITS_DATA_FOLDER="./tests/data" \ PYTHONUNBUFFERED=1 \ - ./venv/bin/pytest --durations=1 -s --cov=lnbits --cov-report=xml tests + ./venv/bin/pytest --durations=1 -s --cov=lnbits --cov-report=xml tests test-pipenv: - rm -rf ./tests/data mkdir -p ./tests/data LNBITS_BACKEND_WALLET_CLASS="FakeWallet" \ FAKE_WALLET_SECRET="ToTheMoon1" \