-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (26 loc) · 666 Bytes
/
Makefile
File metadata and controls
37 lines (26 loc) · 666 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
venv = venv
bin = ${venv}/bin/
pysources = drf_simple_apikey/ example/ tests/
build:
${bin}python -m build
check:
${bin}black --check --diff ${pysources}
make migrations-check
install: install-python
venv:
python3 -m venv ${venv}
venv-activate:
source ${venv}/bin/activate
install-python: venv
${bin}pip install --upgrade pip
${bin}pip install -e ".[test]"
format:
${bin}black ${pysources}
migrations:
@echo "Running migrations..."
${bin}python -m scripts.makemigrations ${app}
migrations-check:
@echo "Running migrations checks..."
${bin}python -m scripts.makemigrations --check ${app}
test:
${bin}pytest && TEST_WITH_ROTATION=1 ${bin}pytest