Files
wehub-resource-sync 1443d3fdf9
Ruff Format Check / Ruff Format & Lint (push) Failing after 7m39s
Deploy VitePress site to Pages / build (push) Failing after 9m11s
Deploy VitePress site to Pages / Deploy (push) Waiting to run
chore: import upstream snapshot with attribution
2026-07-13 12:32:26 +08:00

55 lines
1.4 KiB
Makefile

.PHONY: up up-lite down logs lint format seed reset
PYTEST_ARGS ?=
BACKEND_PYTHON ?= $(shell cat backend/.python-version)
up:
@if [ ! -f .env ]; then \
echo "Error: .env file not found. Please create it from .env.template"; \
exit 1; \
fi
docker compose up -d
down:
docker compose down
reset:
@if [ ! -f .env ]; then \
echo "Error: .env file not found. Please create it from .env.template"; \
exit 1; \
fi
docker compose down
rm -rf docker/volumes
docker compose up -d
@echo "Waiting for api to be ready..."
@until docker compose exec -T api true >/dev/null 2>&1; do sleep 2; done
$(MAKE) seed
up-lite:
@if [ ! -f .env ]; then \
echo "Error: .env file not found. Please create it from .env.template"; \
exit 1; \
fi
LITE_MODE=true VITE_USE_RUNS_API=false docker compose up -d postgres redis minio api web
logs:
@docker logs --tail=50 api-dev
@echo "\n\nBranch: $$(git branch --show-current)"
@echo "Commit ID: $$(git rev-parse HEAD)"
@echo "System: $$(uname -a)"
seed:
docker compose exec api uv run python scripts/seed_initial_users.py
######################
# LINTING AND FORMATTING
######################
format:
cd backend && UV_PYTHON=$(BACKEND_PYTHON) uv run ruff format package
cd backend && UV_PYTHON=$(BACKEND_PYTHON) uv run ruff check package --fix
cd backend && UV_PYTHON=$(BACKEND_PYTHON) uv run ruff check --select I package --fix
cd web && pnpm run format
cd web && pnpm run lint