<commit_before>all: quality complexity test complexity-report coverage-report

test: test-py # Run tests

test-py: unittests acceptance-tests ## Run Python tests

unittests:
	python setup.py nosetests --with-xunit --with-coverage --cover-package=configuration_py --cover-inclusive

acceptance-tests:
	coverage run -a --source='configuration_py' -m behave --tags=~@skip --format=progress3 --junit ./configuration_py/tests/acceptance/

quality: quality-py ## Run code quality checks

quality-py:
	pep8 . --format=pylint --max-line-length=140 --exclude=*/migrations/* --ignore=E121,E123,E126,E226,E24,E704,E402,W292
	pylint -f colorized central

deps-test: ## Install dependencies required to run tests
	pip install -r test_requirements.txt

complexity: ## Run code complexity checks
	xenon . -bA -mA -aA

reports: complexity-reports test-reports coverage-reports

tests-reports:
	cp nosetests.xml $(CIRCLE_TEST_REPORTS)/nosetests/
	cp -r reports $(CIRCLE_TEST_REPORTS)/behave/

complexity-report: ## Generate code complexity reports
	radon cc . -s
	radon mi . -s

coverage-report:
	coverage report<commit_msg>Lowered complexity threshold, fixed makefile<commit_after>all: quality complexity test complexity-report coverage-report

test: test-py # Run tests

test-py: unittests acceptance-tests ## Run Python tests

unittests:
	python setup.py nosetests --with-xunit --with-coverage --cover-package=configuration_py --cover-inclusive

acceptance-tests:
	coverage run -a --source='configuration_py' -m behave --tags=~@skip --format=progress3 --junit ./configuration_py/tests/acceptance/

quality: quality-py ## Run code quality checks

quality-py:
	pep8 . --format=pylint --max-line-length=140 --exclude=*/migrations/* --ignore=E121,E123,E126,E226,E24,E704,E402,W292
	pylint -f colorized central

deps-test: ## Install dependencies required to run tests
	pip install -r test_requirements.txt

complexity: ## Run code complexity checks
	xenon . -bB -mA -aA

reports: complexity-report test-report coverage-report

tests-report:
	cp nosetests.xml $(CIRCLE_TEST_REPORTS)/nosetests/
	cp -r reports $(CIRCLE_TEST_REPORTS)/behave/

complexity-report: ## Generate code complexity reports
	radon cc . -s
	radon mi . -s

coverage-report:
	coverage report
{'fraction_non_alphanumeric': 0.11378848728246319, 'fraction_numerical': 0.0249888442659527, 'mean_word_length': 4.481662591687042, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '7495234', 'n_tokens_mistral': 774, 'n_tokens_neox': 737, 'n_words': 197}