Skip to content

Commit

Permalink
code_check.py doesn't need to check for changes in djangojs.po
Browse files Browse the repository at this point in the history
  • Loading branch information
rowanseymour committed Apr 23, 2020
1 parent 208bd9c commit e7f704f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions code_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,10 @@ def get_current_msgids():
saved_msgids = get_current_msgids()

# re-extract locale files from source code
ignore_paths = ("env/*", "static/bower/*", "static/components/*", "node_modules/*")
ignore_paths = ("env/*", "fabric/*", "media/*", "sitestatic/*", "static/*", "node_modules/*")
ignore_args = " ".join([f'--ignore="{p}"' for p in ignore_paths])

cmd(f"python manage.py makemessages -a -e haml,html,txt,py --no-location --no-wrap {ignore_args}")
cmd(f"python manage.py makemessages -d djangojs -a --no-location --no-wrap {ignore_args}")

# get the new set of msgids
actual_msgids = get_current_msgids()
Expand Down

0 comments on commit e7f704f

Please sign in to comment.