-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
60 lines (40 loc) · 936 Bytes
/
Makefile
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
52
53
54
55
56
57
58
59
60
DC = docker-compose
PC = pip-compile
MG = python src/manage.py
.PHONY: dev test urls pre, test_local test_docker
test_local:
pytest -rP -vv
test_docker:
$(DC) exec api pytest -rP -vv
pre:
pre-commit run --all-files
dev:
$(DC) up -d --build
test:
$(DC) exec api pytest -rP -vv
#docker exec -it api pytest api/tests/test_auth.py -k 'verify_account' -rP -vv
urls:
$(DC) exec api python3 manage.py show_urls
.PHONY: req_dev peq_prod
req_dev:
$(PC) ./requirements/dev.in
req_prod:
$(PC) ./requirements/prod.in
.PHONY: show_urls
show_urls:
$(MG) show_urls
.PHONY: local_test
local_test:
pytest -vvv tests/apps/accounts
.PHONY: ruf_format uv_pip pip_install ruff_check chekc_i
ruff_check:
ruff check --fix .
ruf_format:
ruff format .
check_i:
ruff check . --select I --fix
ruff format .
uv_pip:
uv pip compile requirements/dev.in -o requirements/dev.txt
pip_install:
uv pip install -r requirements/dev.txt