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
|
# Makefile
CLONESCHEMA_FILE := https://raw.githubusercontent.com/denishpatel/pg-clone-schema/master/clone_schema.sql
.PHONY: test
test:
poetry run pytest sandbox/tests --reuse-db
.PHONY: coverage
coverage:
poetry run pytest --cov="django_pgschemas" sandbox/tests --reuse-db
poetry run coverage html
.PHONY: types
types:
poetry run mypy .
.PHONY: down
down:
docker compose down
.PHONY: up
up:
docker compose up --wait
poetry run sandbox/manage.py migrate
.PHONY: docs
docs:
poetry run mkdocs serve -a localhost:9005
.PHONY: update-clone-schema
update-clone-schema:
curl ${CLONESCHEMA_FILE} | python -m gzip - > django_pgschemas/clone_schema.gz
|