27 lines
381 B
Makefile
27 lines
381 B
Makefile
.PHONY: format lint type test check run docker-build smoke
|
|
|
|
format:
|
|
ruff format .
|
|
|
|
lint:
|
|
ruff format --check .
|
|
ruff check .
|
|
|
|
type:
|
|
mypy app
|
|
|
|
test:
|
|
pytest
|
|
|
|
check: lint type test
|
|
|
|
run:
|
|
uvicorn app.main:app --reload --workers 1
|
|
|
|
docker-build:
|
|
docker build -t endpoint-monitor:local .
|
|
|
|
smoke:
|
|
curl --fail http://127.0.0.1:8000/healthz
|
|
curl --fail http://127.0.0.1:8000/readyz
|