<commit_before>PYTHON=python3
PREPARE_FLAGS=--prepare -pd
OPT=-OO
SOURCEFILES=main.py ./compiler/*.py
BINPATH=./bin
TESTPATH=./tests/

.PHONY: check clean cleanaux functionaltest prepare test unittest

all: clean prepare test

check:
	flake8 --ignore=E221 ./compiler/lex.py
	flake8 --ignore=E501 ./compiler/parse.py
	flake8 --exclude=lex.py,parse.py $(SOURCEFILES)
	flake8 --exclude=__init__.py $(TESTPATH)/*.py
	pylint -E $(SOURCEFILES)

test: unittest functionaltest

unittest: $(BINPATH)/utest.sh
	$(BINPATH)/utest.sh

functionaltest: $(BINPATH)/ftest.sh<commit_msg>Makefile: Refine and expand pylint testing.<commit_after>PYTHON=python3
PREPARE_FLAGS=--prepare -pd
OPT=-OO
SOURCEFILES=main.py ./compiler/*.py
BINPATH=./bin
TESTPATH=./tests

.PHONY: check clean cleanaux functionaltest prepare test unittest

all: clean prepare test

check:
	flake8 --ignore=E221 ./compiler/lex.py
	flake8 --ignore=E501 ./compiler/parse.py
	flake8 --exclude=lex.py,parse.py $(SOURCEFILES)
	flake8 --exclude=__init__.py $(TESTPATH)/*.py
	pylint -E --ignore=test_lexer.py $(SOURCEFILES) $(TESTPATH)
	pylint -E -d E1101 $(TESTPATH)/test_lexer.py

test: unittest functionaltest

unittest: $(BINPATH)/utest.sh
	$(BINPATH)/utest.sh

functionaltest: $(BINPATH)/ftest.sh
{'fraction_non_alphanumeric': 0.1450320512820513, 'fraction_numerical': 0.020833333333333332, 'mean_word_length': 4.755760368663594, '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': '1574344', 'n_tokens_mistral': 478, 'n_tokens_neox': 454, 'n_words': 99}