-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
51 lines (36 loc) · 807 Bytes
/
makefile
File metadata and controls
51 lines (36 loc) · 807 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
46
47
48
49
50
51
.PHONY: install dev build up down logs clean lock lint format test makemigrations migrate test_coverage
install:
curl -LsSf https://astral.sh/uv/install.sh | sh
@echo "Add $$HOME/.cargo/bin to your PATH"
sync:
uv sync
lock:
uv lock
dev:
docker-compose -f docker-compose.dev.yml up --build
build:
docker-compose build
up:
docker-compose up -d
down:
docker-compose down
logs:
docker-compose logs -f
clean:
docker-compose down -v
docker system prune -f
test:
uv run pytest tests -vv
test_coverage:
uv run coverage report
lint:
uv run ruff format --diff
uv run ruff check
mypy .
format:
uv run ruff format
uv run ruff check --fix
makemigrations:
docker-compose exec web uv run python manage.py makemigrations
migrate:
docker-compose exec web uv run python manage.py migrate