DOCKER_COMPOSE = COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 docker compose DOCKER_RUN = ${DOCKER_COMPOSE} run -u `id -u` DOCKER_CONTAINER_NAME = backend MANAGE_EXEC = python /app/src/manage.py MANAGE_COMMAND = ${DOCKER_RUN} ${DOCKER_CONTAINER_NAME} ${MANAGE_EXEC} init: setup_venv pre_commit_install migrate run: ${DOCKER_COMPOSE} up pre_commit_install: venv/bin/pre-commit install pre_commit_run_all: venv/bin/pre-commit run --all-files makemigrations: ${MANAGE_COMMAND} makemigrations ${ARGS} migrate: ${MANAGE_COMMAND} migrate ${ARGS} createsuperuser: ${MANAGE_COMMAND} createsuperuser shell: ${MANAGE_COMMAND} shell manage_command: ${MANAGE_COMMAND} ${ARGS} build_dev_docker_image: ${DOCKER_COMPOSE} build ${DOCKER_CONTAINER_NAME}