<commit_before>DOCS_FOLDER = docs
DOCS_FOLDER_BUILD = $(DOCS_FOLDER)/build/
DOCS_FOLDER_SOURCE = $(DOCS_FOLDER)/source/
IATI_FOLDER = iati/

LINE_SEP = ---

all: test lint docs

docs: $(IATI_FOLDER) $(DOCS_FOLDER_SOURCE)
	sphinx-apidoc -o $(DOCS_FOLDER_SOURCE) $(IATI_FOLDER)
	echo $(LINE_SEP)
	sphinx-build -b html $(DOCS_FOLDER_SOURCE) $(DOCS_FOLDER_BUILD)


lint: $(IATI_FOLDER)
	-pylint $(IATI_FOLDER)
	echo $(LINE_SEP)
	-flake8 $(IATI_FOLDER)
	echo $(LINE_SEP)
	-pydocstyle $(IATI_FOLDER)


test: $(IATI_FOLDER)
	py.test $(IATI_FOLDER)<commit_msg>Improve Makefile docs<commit_after># folders
DOCS_FOLDER = docs
DOCS_FOLDER_BUILD = $(DOCS_FOLDER)/build/
DOCS_FOLDER_SOURCE = $(DOCS_FOLDER)/source/
IATI_FOLDER = iati/

# useful constants
LINE_SEP = ---

all: test lint docs

docs: $(IATI_FOLDER) $(DOCS_FOLDER_SOURCE)
	sphinx-apidoc -o $(DOCS_FOLDER_SOURCE) $(IATI_FOLDER)
	echo $(LINE_SEP)
	sphinx-build -b html $(DOCS_FOLDER_SOURCE) $(DOCS_FOLDER_BUILD)


lint: $(IATI_FOLDER)
	-pylint $(IATI_FOLDER)
	echo $(LINE_SEP)
	-flake8 $(IATI_FOLDER)
	echo $(LINE_SEP)
	-pydocstyle $(IATI_FOLDER)


test: $(IATI_FOLDER)
	py.test $(IATI_FOLDER)
{'fraction_non_alphanumeric': 0.14022787028921999, 'fraction_numerical': 0.0017528483786152498, 'mean_word_length': 5.7976190476190474, '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': '2778283', 'n_tokens_mistral': 579, 'n_tokens_neox': 566, 'n_words': 91}