Skip to content

Commit

Permalink
Tweak code_check.py so missing migrations are generated before format…
Browse files Browse the repository at this point in the history
…ting and thus included in formatting
  • Loading branch information
rowanseymour committed May 6, 2020
1 parent 5db6419 commit c831567
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ def get_current_msgids():
if __name__ == "__main__":
colorama.init()

status("Make any missing migrations")
cmd("python manage.py makemigrations")
status("Running black")
cmd("black --line-length=119 --target-version=py36 temba")
status("Running flake8")
Expand All @@ -74,8 +76,6 @@ def get_current_msgids():
update_po_files()
status("Recompiling locale MO files")
cmd("python manage.py compilemessages")
status("Make any missing migrations")
cmd("python manage.py makemigrations")

# if any code changes were made, exit with error
if cmd("git diff temba locale"):
Expand Down

0 comments on commit c831567

Please sign in to comment.