forked from amanaiproduct/ai-trip-planner
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (28 loc) · 1.03 KB
/
Makefile
File metadata and controls
36 lines (28 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
.PHONY: test test-verbose test-coverage test-watch install run lint help
# Default target
help:
@echo "Available commands:"
@echo " make test - Run all tests"
@echo " make test-verbose - Run tests with verbose output"
@echo " make test-coverage - Run tests with coverage report"
@echo " make install - Install dependencies"
@echo " make run - Start the backend server"
@echo " make lint - Run linter on backend code"
# Run all tests
test:
cd backend && source .env && uv run pytest tests/ -v
# Run tests with verbose output
test-verbose:
cd backend && source .env && uv run pytest tests/ -vv
# Run tests with coverage report
test-coverage:
cd backend && source .env && uv run pytest tests/ --cov=main --cov-report=html --cov-report=term
# Install dependencies
install:
cd backend && uv pip install -r requirements.txt
# Start the backend server
run:
cd backend && source .env && uv run uvicorn main:app --host 0.0.0.0 --port 8000 --reload
# Run linter
lint:
cd backend && uv run ruff check .