-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
45 lines (32 loc) · 926 Bytes
/
Makefile
File metadata and controls
45 lines (32 loc) · 926 Bytes
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
36
37
38
39
40
41
42
43
44
45
.PHONY: install dev test lint format run seed clean docker-up docker-down frontend
install:
pip install -e .
dev:
pip install -e ".[dev]"
test:
pytest tests/ -v --tb=short -m "not integration"
test-integration:
pytest tests/ -v --tb=short -m "integration"
test-all:
pytest tests/ -v --tb=short --cov=depgraph --cov-report=term-missing
lint:
ruff check src/ tests/
ruff format --check src/ tests/
cd frontend && npx tsc --noEmit
format:
ruff check --fix src/ tests/
ruff format src/ tests/
run:
uvicorn depgraph.api:app --host 0.0.0.0 --port 8000 --reload
seed:
depgraph seed --packages 80
frontend:
cd frontend && npm install && npm run build
clean:
rm -rf __pycache__ .pytest_cache .ruff_cache .coverage htmlcov dist build *.egg-info
find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true
rm -rf frontend/dist
docker-up:
docker compose up -d
docker-down:
docker compose down -v