-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
51 lines (35 loc) · 1.29 KB
/
Makefile
File metadata and controls
51 lines (35 loc) · 1.29 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
.PHONY: lint test up down logs ssh shell makemigrations manage debug css release-patch release-minor release-major
lint:
uv run ruff format .
uv run ruff check --fix --unsafe-fixes .
uv run mypy --config-file pyproject.toml .
test:
docker compose --file compose.dev.yaml run --rm --no-deps --quiet-build web pytest --cov --cov-branch --cov-report=xml $(if $(ARGS),$(ARGS),tests/)
test_ci:
uv run pytest -s -vvv --cov --cov-branch --cov-report=xml tests/
up:
docker compose --file compose.dev.yaml up --remove-orphans
up-all:
docker compose --file compose.dev.yaml --profile taskrunner up --remove-orphans
down:
docker compose --file compose.dev.yaml down --remove-orphans
logs:
docker compose --file compose.dev.yaml logs -f
ssh:
docker compose --file compose.dev.yaml run --rm web bash
shell:
docker compose --file compose.dev.yaml exec web ./manage.py shell
makemigrations:
docker compose --file compose.dev.yaml exec web ./manage.py makemigrations
manage:
docker compose --file compose.dev.yaml exec web ./manage.py $(CMD)
debug:
docker compose --file compose.dev.yaml attach web # exit with Ctrl+PQ
css:
tailwindcss -i web/static/web/src/style.css -o web/static/web/style.css
release-patch:
./release.sh patch
release-minor:
./release.sh minor
release-major:
./release.sh major