generated from coulomb/repo-seed
41 lines
1.3 KiB
Makefile
41 lines
1.3 KiB
Makefile
.PHONY: install test lint run openapi migrate-validate deployed-smoke staging-profile-check container-build playwright-install visual-check
|
|
|
|
UV ?= /home/worsch/.local/bin/uv
|
|
PYTHONPATH ?= src
|
|
IMAGE_REPOSITORY ?= gitea.coulomb.social/coulomb/core-hub
|
|
IMAGE_TAG ?= dev
|
|
|
|
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
|
|
|
|
|
|
migrate-validate:
|
|
PYTHONPATH=$(PYTHONPATH) $(UV) run --extra dev python scripts/core_hub_migrate.py validate contracts/fixtures/migration/interhub-minimal.bundle.json
|
|
|
|
deployed-smoke:
|
|
PYTHONPATH=$(PYTHONPATH) $(UV) run --extra dev python scripts/core_hub_deployed_smoke.py
|
|
|
|
staging-profile-check:
|
|
PYTHONPATH=$(PYTHONPATH) $(UV) run --extra dev python scripts/check_staging_profile.py
|
|
|
|
container-build:
|
|
docker build -t $(IMAGE_REPOSITORY):$(IMAGE_TAG) .
|
|
|
|
playwright-install:
|
|
$(UV) run --extra dev playwright install chromium
|
|
|
|
visual-check:
|
|
PYTHONPATH=$(PYTHONPATH) $(UV) run --extra dev python scripts/check_console_visual.py
|