Files
skeleton-small_project/Makefile
Martin Fencl d9bee53a00 init
2022-07-13 18:43:52 +02:00

47 lines
778 B
Makefile

.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