generated from coulomb/repo-seed
Start Core Hub FastAPI replacement foundation
This commit is contained in:
19
Makefile
Normal file
19
Makefile
Normal file
@@ -0,0 +1,19 @@
|
||||
.PHONY: install test lint run openapi
|
||||
|
||||
UV ?= /home/worsch/.local/bin/uv
|
||||
PYTHONPATH ?= src
|
||||
|
||||
install:
|
||||
$(UV) sync --extra dev
|
||||
|
||||
test:
|
||||
PYTHONPATH=$(PYTHONPATH) $(UV) run --extra dev pytest
|
||||
|
||||
lint:
|
||||
PYTHONPATH=$(PYTHONPATH) $(UV) run --extra dev ruff check .
|
||||
|
||||
run:
|
||||
PYTHONPATH=$(PYTHONPATH) $(UV) run uvicorn core_hub.app:app --reload --host 127.0.0.1 --port 8010
|
||||
|
||||
openapi:
|
||||
PYTHONPATH=$(PYTHONPATH) $(UV) run python scripts/export_openapi.py contracts/openapi/core-hub.openapi.json
|
||||
Reference in New Issue
Block a user