init
This commit is contained in:
46
Makefile
Normal file
46
Makefile
Normal file
@@ -0,0 +1,46 @@
|
||||
.PHONY: build build-pkg change_file clean dev mrproper namespace pep8 rebuild run static-checks test
|
||||
|
||||
build: build-pkg
|
||||
|
||||
build-pkg:
|
||||
python3 -m pip install --upgrade build
|
||||
python3 -m build
|
||||
|
||||
change_file:
|
||||
/bin/bash scripts/create_change_file.sh
|
||||
|
||||
clean:
|
||||
rm -fv **/*.pyc
|
||||
rm -fv **/*.pyo
|
||||
rm -rfv .pytest_cache
|
||||
rm -rfv .coverage
|
||||
rm -rfv dist
|
||||
rm -rfv src/*.egg-info
|
||||
rm -rfv __pycache__
|
||||
rm -rfv **/__pycache__
|
||||
|
||||
dev:
|
||||
skaffold dev
|
||||
|
||||
hosts:
|
||||
echo "`minikube ip` CHANGEME.local"
|
||||
|
||||
mrproper: clean
|
||||
rm -f VERSION.txt
|
||||
|
||||
namespace:
|
||||
kubectl config set-context --current --namespace=CHANGEME-desktop-dev
|
||||
|
||||
pep8:
|
||||
flake8 src/ tests/
|
||||
|
||||
rebuild:
|
||||
skaffold build -p rebuild
|
||||
|
||||
run:
|
||||
skaffold run --tail
|
||||
|
||||
static-checks: pep8
|
||||
|
||||
test:
|
||||
PYTHONPATH=src/ pytest -vv --cov-report term-missing --cov=src
|
||||
Reference in New Issue
Block a user