-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmakefile
More file actions
44 lines (32 loc) · 754 Bytes
/
makefile
File metadata and controls
44 lines (32 loc) · 754 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
PORT=8080
HOST=0.0.0.0
COVERAGE_TARGET=src
setup:
uv sync
uv run src/manage.py makemigrations
setup-dev: setup
uv run pre-commit install
migration:
uv run src/manage.py makemigrations
uv run src/manage.py migrate
run:
uv run src/manage.py migrate
uv run src/manage.py runserver $(HOST):$(PORT)
run-dev: setup
uv run src/manage.py migrate
DEBUG=True ALLOWED_HOSTS=* uv run src/manage.py runserver $(HOST):$(PORT)
unit-test:
uv run pytest -m unit
feature-test:
uv run pytest -m feature
e2e-test:
uv run pytest -m e2e
test:
uv run pytest
ptw:
uv run ptw .
test-report:
uv run pytest --cov-report term-missing --cov=$(COVERAGE_TARGET)
uv run coverage html
export-swagger:
uv run src/manage.py spectacular --file swagger/api.yaml