<commit_before>VERBOSITY := 1
NAME = 'kb'
LOCALPATH := $(CURDIR)/$($NAME)/
SCRIPT := manage.py

.PHONY: clean test coverage report lint

clean:
	@find . -name "*.pyc" -print0 | xargs -0 rm -rf
	@find . -name "__pycache__" -print0 | xargs -0 rm -rf
	@rm -rf .coverage
	@rm -rf whoosh_index/*

test: clean
	@python $(SCRIPT) test -v $(VERBOSITY) $(APP) --failfast

test.integration: clean
	@python $(SCRIPT) test --pattern="integration_*.py" -v $(VERBOSITY) $(APP) --failfast

coverage: clean
	@coverage run $(SCRIPT) test --failfast

report:
	@coverage report -m

lint:
	@flake8 $(LOCALPATH)<commit_msg>Add option to test all kind of tests<commit_after>VERBOSITY := 1
NAME = 'kb'
LOCALPATH := $(CURDIR)/$($NAME)/
SCRIPT := manage.py

.PHONY: clean test coverage report lint

clean:
	@find . -name "*.pyc" -print0 | xargs -0 rm -rf
	@find . -name "__pycache__" -print0 | xargs -0 rm -rf
	@rm -rf .coverage
	@rm -rf whoosh_index/*

test: clean
	@python $(SCRIPT) test -v $(VERBOSITY) $(APP) --failfast

test.integration: clean
	@python $(SCRIPT) test --pattern="integration_*.py" -v $(VERBOSITY) $(APP) --failfast

test.all: test test.integration

coverage: clean
	@coverage run $(SCRIPT) test --failfast

report:
	@coverage report -m

lint:
	@flake8 $(LOCALPATH)
{'fraction_non_alphanumeric': 0.16587301587301587, 'fraction_numerical': 0.009523809523809525, 'mean_word_length': 3.7765151515151514, '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': '5535429', 'n_tokens_mistral': 501, 'n_tokens_neox': 486, 'n_words': 149}