-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
31 lines (25 loc) · 1.12 KB
/
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
# Приводит venv в соответствие с pyproject.toml и обновляет requirements[_dev].txt.
poetry:
poetry add pycowsay && \
poetry remove pycowsay && \
poetry export --without-hashes > requirements.txt && \
poetry export --dev --without-hashes > requirements_dev.txt
# Проверяет код на соответствие PEP8. Не форматирует, только информирует.
check:
isort --check --skip-gitignore .
black --check .
flake8 .
python manage.py makemigrations --check --dry-run
format:
isort --skip-gitignore .
black .
up:
docker compose -f ./infra/deploy_local/docker-compose_local.yaml up --build
# migrate + collectstatic
migrate:
docker compose -f ./infra/deploy_local/docker-compose_local.yaml exec backend python manage.py migrate && \
docker compose -f ./infra/deploy_local/docker-compose_local.yaml exec backend python manage.py collectstatic --no-input
createsuperuser:
docker compose -f ./infra/deploy_local/docker-compose_local.yaml exec backend python manage.py createsuperuser
down:
docker compose -f ./infra/deploy_local/docker-compose_local.yaml down