<commit_before>TEST_DIR=$(CURDIR)/test
RESOURCES_DIR=$(CURDIR)/resources

PEP8=pep8 --ignore=E501,E225,E123,E128
APPS=proso_common proso_feedback proso_flashcards proso_models proso_questions proso_questions_client proso_user
GRUNT_APPS=proso_questions_client

VERSION:=$(shell grep "VERSION = '.*'" proso/release.py | awk -F ' = ' '{print $$2}' | tr -d "'")
MAJOR_VERSION=$(word 1,$(subst ., ,$(VERSION)))
MINOR_VERSION=$(word 2,$(subst ., ,$(VERSION)))
MICRO_VERSION=$(word 3,$(subst ., ,$(VERSION)))


################################################################################

upload: grunt test register
	python setup.py sdist upload

register:
	python setup.py register


################################################################################

test: reinstall
	python -m unittest discover -p test_*.py -s proso
	for APP in $(APPS); do \
		python manage.py test $$APP --traceback; \
	done;

reinstall: check uninstall install

develop: check
	python setup.py develop

install: check
	python setup.py sdist
	pip install dist/proso-apps-*

uninstall:
	pip uninstall --yes proso-apps

check:
	flake8 --ignore=E501,E225,E123,E128 --exclude=*/migrations/*.py proso_models $(APPS)

grunt:
	for APP in $(GRUNT_APPS); do \
		cd $${APP}; \
		npm install; \
		grunt deploy; \
		cd -; \<commit_msg>remove bower files form flake8 check<commit_after>TEST_DIR=$(CURDIR)/test
RESOURCES_DIR=$(CURDIR)/resources

PEP8=pep8 --ignore=E501,E225,E123,E128
APPS=proso_common proso_feedback proso_flashcards proso_models proso_questions proso_questions_client proso_user
GRUNT_APPS=proso_questions_client

VERSION:=$(shell grep "VERSION = '.*'" proso/release.py | awk -F ' = ' '{print $$2}' | tr -d "'")
MAJOR_VERSION=$(word 1,$(subst ., ,$(VERSION)))
MINOR_VERSION=$(word 2,$(subst ., ,$(VERSION)))
MICRO_VERSION=$(word 3,$(subst ., ,$(VERSION)))


################################################################################

upload: grunt test register
	python setup.py sdist upload

register:
	python setup.py register


################################################################################

test: reinstall
	python -m unittest discover -p test_*.py -s proso
	for APP in $(APPS); do \
		python manage.py test $$APP --traceback; \
	done;

reinstall: check uninstall install

develop: check
	python setup.py develop

install: check
	python setup.py sdist
	pip install dist/proso-apps-*

uninstall:
	pip uninstall --yes proso-apps

check:
	flake8 --ignore=E501,E225,E123,E128 --exclude=*/migrations/*.py,*/static/bower_components proso_models $(APPS)

grunt:
	for APP in $(GRUNT_APPS); do \
		cd $${APP}; \
		npm install; \
		grunt deploy; \
		cd -; \
{'fraction_non_alphanumeric': 0.24690431519699813, 'fraction_numerical': 0.023639774859287054, 'mean_word_length': 5.37799043062201, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2505893', 'n_tokens_mistral': 961, 'n_tokens_neox': 875, 'n_words': 215}