<commit_before>
.PHONY: travis-tests test pep8 clean coverage doc check-venv

# clean out potentially stale pyc files
clean:
	@find . -name "*.pyc" -exec rm {} \;

# check that virtualenv is enabled
check-venv:
ifndef VIRTUAL_ENV
	$(error VIRTUAL_ENV is undefined, try "workon" command)
endif

# Install pip requirements.txt file
reqs: check-venv
	pip install -r requirements.txt

PEP8_OPTS=--repeat --exclude=static,migrations,south_migrations,js,doc --show-source
pep8:
	pycodestyle $(PEP8_OPTS) .

#
# flake8
#

FLAKE8_OPTS=--max-complexity 10 --exclude='migrations,south_migrations'
flake8: check-venv
	flake8 $(FLAKE8_OPTS) .

#
# unit tests<commit_msg>Fix the Flake8 options to ignore travis files.<commit_after>
.PHONY: travis-tests test pep8 clean coverage doc check-venv

# clean out potentially stale pyc files
clean:
	@find . -name "*.pyc" -exec rm {} \;

# check that virtualenv is enabled
check-venv:
ifndef VIRTUAL_ENV
	$(error VIRTUAL_ENV is undefined, try "workon" command)
endif

# Install pip requirements.txt file
reqs: check-venv
	pip install -r requirements.txt

PEP8_OPTS=--repeat --exclude=static,migrations,south_migrations,js,doc --show-source
pep8:
	pycodestyle $(PEP8_OPTS) .

#
# flake8
#

FLAKE8_OPTS=--exclude=static,migrations,south_migrations,js,doc,travis_*
flake8: check-venv
	flake8 $(FLAKE8_OPTS) .

#
# unit tests
{'fraction_non_alphanumeric': 0.11185185185185186, 'fraction_numerical': 0.015555555555555555, 'mean_word_length': 4.773504273504273, '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': '3236560', 'n_tokens_mistral': 524, 'n_tokens_neox': 514, 'n_words': 130}