Skip to content

Commit

Permalink
Merge pull request #125 from girder/check-migrations
Browse files Browse the repository at this point in the history
Add a Tox step to check for missing migrations
  • Loading branch information
brianhelba authored Feb 5, 2021
2 parents 2810ebf + 5c42b29 commit 1477d9f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions {{ cookiecutter.project_slug }}/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
envlist =
lint,
{% if cookiecutter.include_example_code != 'yes' %}# {% endif -%}test,
check-migrations,

[testenv:lint]
skipsdist = true
Expand Down Expand Up @@ -53,6 +54,18 @@ deps =
commands =
pytest {posargs}

[testenv:check-migrations]
setenv =
DJANGO_CONFIGURATION = TestingConfiguration
passenv =
DJANGO_CELERY_BROKER_URL
DJANGO_DATABASE_URL
DJANGO_MINIO_STORAGE_ACCESS_KEY
DJANGO_MINIO_STORAGE_ENDPOINT
DJANGO_MINIO_STORAGE_SECRET_KEY
commands =
{envpython} ./manage.py makemigrations --check --dry-run

[flake8]
max-line-length = 100
show-source = True
Expand Down

0 comments on commit 1477d9f

Please sign in to comment.