<commit_before>all: test

install:
	pip3 install neovim mypy flake8 --upgrade

lint:
	mypy --ignore-missing-imports .;  flake8 .

test:
	nvim +UpdateRemotePlugins +qall
	rm -f /tmp/nvim-LanguageClient-IntegrationTest
	NVIM_LISTEN_ADDRESS=/tmp/nvim-LanguageClient-IntegrationTest nvim -n -u tests/vimrc --headless & echo "$$!" > tests/nvimPID
	sleep 1s && py.test --capture=no --exitfirst
	kill $$(cat tests/nvimPID)<commit_msg>Redirect nvim stderr to make test output cleaner.<commit_after>all: test

install:
	pip3 install neovim mypy flake8 --upgrade

lint:
	mypy --ignore-missing-imports .;  flake8 .

test:
	nvim +UpdateRemotePlugins +qall
	rm -f /tmp/nvim-LanguageClient-IntegrationTest
	NVIM_LISTEN_ADDRESS=/tmp/nvim-LanguageClient-IntegrationTest nvim -n -u tests/vimrc --headless 2>/dev/null & echo "$$!" > tests/nvimPID
	sleep 1s && py.test --capture=no --exitfirst
	kill $$(cat tests/nvimPID)
{'fraction_non_alphanumeric': 0.12416851441241686, 'fraction_numerical': 0.009977827050997782, 'mean_word_length': 4.189655172413793, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '2024072', 'n_tokens_mistral': 349, 'n_tokens_neox': 327, 'n_words': 79}