forked from florimondmanca/djangorestframework-api-key
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
50 lines (36 loc) · 801 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
.PHONY: docs
venv = venv
bin = ${venv}/bin/
pysources = src/ test_project/ tests/
build:
${bin}python -m build
check:
${bin}ruff check ${pysources}
${bin}black --check --diff ${pysources}
${bin}mypy ${pysources}
make migrations-check
docs:
${bin}mkdocs build
docs-serve:
${bin}mkdocs serve
docs-deploy:
${bin}mkdocs gh-deploy
install: install-python
venv:
python3 -m venv ${venv}
install-python: venv
${bin}pip install -U pip wheel
${bin}pip install -U build
${bin}pip install -r requirements.txt
./tools/install_django.sh ${bin}pip
format:
${bin}ruff check --fix ${pysources}
${bin}black ${pysources}
migrations:
${bin}python -m tools.makemigrations
migrations-check:
${bin}python -m tools.makemigrations --check
publish:
${bin}twine upload dist/*
test:
${bin}pytest