ForcePilot/Makefile

39 lines
877 B
Makefile
Raw Normal View History

.PHONY: up up-lite down logs lint format
PYTEST_ARGS ?=
2026-03-17 19:46:09 +08:00
up:
@if [ ! -f .env ]; then \
echo "Error: .env file not found. Please create it from .env.template"; \
exit 1; \
fi
docker compose up -d
2026-03-17 19:46:09 +08:00
down:
docker compose down
up-lite:
@if [ ! -f .env ]; then \
echo "Error: .env file not found. Please create it from .env.template"; \
exit 1; \
fi
LITE_MODE=true docker compose up -d postgres redis minio api worker 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)"
######################
# LINTING AND FORMATTING
######################
format:
2026-03-19 12:09:17 +08:00
cd backend && uv run ruff format package
cd backend && uv run ruff check package --fix
cd backend && uv run ruff check --select I package --fix
2026-03-26 13:53:35 +08:00
cd web && pnpm run format
cd web && pnpm run lint