mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-27 03:54:02 +03:00
Merge branch 'master' into aws_s3_region_name
This commit is contained in:
commit
a113f3292b
|
@ -16,9 +16,17 @@ cd .cache/docker
|
||||||
cookiecutter ../../ --no-input --overwrite-if-exists use_docker=y $@
|
cookiecutter ../../ --no-input --overwrite-if-exists use_docker=y $@
|
||||||
cd my_awesome_project
|
cd my_awesome_project
|
||||||
|
|
||||||
# run migrations
|
# run the project's type checks
|
||||||
docker-compose -f local.yml run django python manage.py migrate
|
docker-compose -f local.yml run django mypy my_awesome_project
|
||||||
|
|
||||||
# view backups
|
# Run black with --check option
|
||||||
docker-compose -f local.yml exec postgres backups
|
docker-compose -f local.yml run django black --check --diff --exclude 'migrations' ./
|
||||||
|
|
||||||
|
# run the project's tests
|
||||||
|
docker-compose -f local.yml run django pytest
|
||||||
|
|
||||||
|
# return non-zero status code if there are migrations that have not been created
|
||||||
|
docker-compose -f local.yml run django python manage.py makemigrations --dry-run --check || { echo "ERROR: there were changes in the models, but migration listed above have not been created and are not saved in version control"; exit 1; }
|
||||||
|
|
||||||
|
# Test support for translations
|
||||||
|
docker-compose -f local.yml run django python manage.py makemessages
|
||||||
|
|
Loading…
Reference in New Issue
Block a user