<commit_before>vim := /usr/bin/vim
plugins = ${HOME}/.vim/plugged
redirect := >/dev/null

test: test-python test-vim

test-python: plugin/test.py
	@if which python  >/dev/null; then python  --version; python  $<; fi
	@if which python3 >/dev/null; then python3 --version; python3 $<; fi

autotest:
	find plugin | entr make test-python

# Automated vim testing via vader.vim
pwd = $(shell pwd)
test-vim: vendor/vader.vim
	@bash -c 'env HOME=/dev/null ${vim} -Nu <( \
		echo "filetype off"; \
		echo "set rtp+=${pwd}/$<"; \
		echo "set rtp+=${pwd}"; \
		echo "filetype plugin indent on"; \<commit_msg>Nofork<commit_after>vim := /usr/bin/vim
plugins = ${HOME}/.vim/plugged
redirect := >/dev/null

test: test-python test-vim

test-python: plugin/test.py
	@if which python  >/dev/null; then python  --version; python  $<; fi
	@if which python3 >/dev/null; then python3 --version; python3 $<; fi

autotest:
	find plugin | entr make test-python

# Automated vim testing via vader.vim
pwd = $(shell pwd)
test-vim: vendor/vader.vim
	@bash -c 'env HOME=/dev/null ${vim} --nofork -Nu <( \
		echo "filetype off"; \
		echo "set rtp+=${pwd}/$<"; \
		echo "set rtp+=${pwd}"; \
		echo "filetype plugin indent on"; \
{'fraction_non_alphanumeric': 0.17529215358931552, 'fraction_numerical': 0.005008347245409015, 'mean_word_length': 3.4407407407407407, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 9, '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': '4271419', 'n_tokens_mistral': 491, 'n_tokens_neox': 453, 'n_words': 131}