# DjangoAdmin FastAPI+EleVue 常用命令 # Windows 无 make 时可用:python -m pytest / python main.py 等直接执行 .PHONY: install dev test test-contract test-unit test-integration lint # 安装依赖(运行 + 开发) install: pip install -r requirements.txt -r requirements-dev.txt # 启动开发服务 dev: python main.py # 全部测试(默认跳过 integration) test: pytest # 契约快照测试 test-contract: pytest tests/contract -m contract # 单元测试 test-unit: pytest tests/unit # 集成测试(需真实 MySQL/Redis) test-integration: pytest tests/integration -m integration # 静态检查(需 pip install ruff) lint: ruff check .