Start Core Hub FastAPI replacement foundation
This commit is contained in:
parent
75963233b6
commit
1e87adbcbb
37 changed files with 3292 additions and 30 deletions
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue