-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
39 lines (27 loc) · 970 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
all: requirements build
format:
./bin/isort --profile black --filter-files ./src
./bin/black -S -l 120 -t py310 ./src/
./bin/flake8
./bin/mypy --exclude='setup.py' --exclude migrations --python-version=3.10 --ignore-missing-imports -p src
requirements:
pip install -r requirements.txt
build:
buildout
build_dev:
buildout -c buildout-dev.cfg
compose_all:
make compose_rebuild; sleep 5; make compose_migrate compose_createsuperuser
createsuperuser:
bin/manage.py createsuperuser --username root --email [email protected]
compose_migrate:
./bin/docker-compose exec web bash -c "bin/manage.py migrate"
compose_createsuperuser:
./bin/docker-compose exec web bash -c "bin/manage.py createsuperuser --username root --email [email protected]"
compose_crawl_remote_api:
./bin/docker-compose exec web bash -c "bin/manage.py crawl_remote_api"
compose_up:
./bin/docker-compose up --build --detach
compose_down:
./bin/docker-compose down
compose_rebuild: compose_down compose_up