<commit_before>.PHONY: help clean docs tests packages

help:
	@echo "Please use \`make <target>' where <target> is one of"
	@echo "  clean     to cleanup build and temporary files"
	@echo "  docs      to build the documentation"
	@echo "  tests     to run the test suite"
	@echo "  packages  to build python source and egg packages"

clean:
	@rm -rf build dist circuits.egg-info circuits/__version__.py
	@rm -rf .coverage coverage
	@rm -rf docs/build
	@find . -name '*.pyc' -delete
	@find . -name '*.pyo' -delete
	@find . -name '*~' -delete

docs:
	@make -C docs html

packages:
	@tools/mkpkgs -p python2.5
	@tools/mkpkgs -p python2.6

tests:
	@py.test -x -r fsxX \
		--ignore=tmp \
		--pastebin=all \
		--cov=circuits \
		--cov-html \
		--cov-html-dir=coverage \
		--cov-no-terminal \
		tests/
		#--cov-combine-each \
		#--dist=each \
		#--tx=popen//python=/usr/bin/python2.5 \
		#--tx=popen//python=/usr/bin/python2.6 \
		#tests/
<commit_msg>Makefile: Make --cov options compatible with pytest_cov<commit_after>.PHONY: help clean docs tests packages

help:
	@echo "Please use \`make <target>' where <target> is one of"
	@echo "  clean     to cleanup build and temporary files"
	@echo "  docs      to build the documentation"
	@echo "  tests     to run the test suite"
	@echo "  packages  to build python source and egg packages"

clean:
	@rm -rf build dist circuits.egg-info circuits/__version__.py
	@rm -rf .coverage coverage
	@rm -rf docs/build
	@find . -name '*.pyc' -delete
	@find . -name '*.pyo' -delete
	@find . -name '*~' -delete

docs:
	@make -C docs html

packages:
	@tools/mkpkgs -p python2.5
	@tools/mkpkgs -p python2.6

tests:
	@py.test -x -r fsxX \
		--ignore=tmp \
		--pastebin=all \
		--cov=circuits \
		tests/
		#--cov-combine-each \
		#--dist=each \
		#--tx=popen//python=/usr/bin/python2.5 \
		#--tx=popen//python=/usr/bin/python2.6 \
		#tests/

{'fraction_non_alphanumeric': 0.15227882037533513, 'fraction_numerical': 0.008579088471849867, 'mean_word_length': 2.623300970873786, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '6968677', 'n_tokens_mistral': 759, 'n_tokens_neox': 713, 'n_words': 205}