pre-push commit

This commit is contained in:
Peter van Arkel
2025-11-20 14:40:42 +01:00
parent 3001e5cffd
commit 644b207997
43 changed files with 1681 additions and 0 deletions

27
Makefile Normal file
View File

@@ -0,0 +1,27 @@
# Simple helpers
PY ?= python
HOST ?= 0.0.0.0
PORT ?= 5050
TOKEN ?= changeme
DATA ?=
.PHONY: install dev run test seed clean
install:
$(PY) -m pip install -U pip
$(PY) -m pip install -e . -r requirements-dev.txt
dev:
$(PY) -m pip install -r requirements-dev.txt
run:
$(PY) -m battleflow.cli --host $(HOST) --port $(PORT) --token $(TOKEN) $(if $(DATA),--data-dir $(DATA),)
test:
pytest -q
seed:
curl -s -X POST "http://$(HOST):$(PORT)/admin/seed_icons?token=$(TOKEN)" >/dev/null || true
clean:
rm -rf .pytest_cache .coverage build dist *.egg-info