Skip to content

Commit

Permalink
Update development.py (#2330)
Browse files Browse the repository at this point in the history
* Update development.py

* Update ci.sh

* Update development.py
  • Loading branch information
sobolevn authored May 1, 2024
1 parent 42975b5 commit 9ec0635
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion {{cookiecutter.project_name}}/docker/django/ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ run_ci () {
python manage.py makemigrations --dry-run --check

# Check that all migrations are backwards compatible:
python manage.py lintmigrations --exclude-apps=axes --warnings-as-errors
python manage.py lintmigrations

# Check production settings for gunicorn:
gunicorn --check-config --config python:docker.django.gunicorn_config server.wsgi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,16 @@ def _custom_show_toolbar(request: 'HttpRequest') -> bool:
))


# django-migration-linter
# https://github.com/3YOURMIND/django-migration-linter

MIGRATION_LINTER_OPTIONS = {
'exclude_apps': ['axes'],
'exclude_migration_tests': ['CREATE_INDEX', 'CREATE_INDEX_EXCLUSIVE'],
'warnings_as_errors': True,
}


# django-extra-checks
# https://github.com/kalekseev/django-extra-checks

Expand Down

0 comments on commit 9ec0635

Please sign in to comment.