rhazdon/django-sonic-screwdriver

View on GitHub
Makefile

Summary

Maintainability
Test Coverage
.PHONY: makemessages compilemessages test

default: help

help:
    @echo 'make targets:'
    @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "  %-13s %s\n", $$1, $$2}'
    @echo '  help          This message'

compilemessages:  ## Compiles the translations into binary data.
    pipenv run ./manage.py compilemessages

makemessages:  ## Creates .po files of the marked strings for translating.
    pipenv run ./manage.py makemessages --locale=de

test:  ## Run all tests and report the coverage.
    DJANGO_SETTINGS_MODULE=tests.settings pipenv run coverage run --source='.' manage.py test tests && pipenv run coverage html && pipenv run coverage report -m