pre-push commit
This commit is contained in:
27
Makefile
Normal file
27
Makefile
Normal 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
|
||||
Reference in New Issue
Block a user