<commit_before>#!/bin/sh

echo "Running flake8"
flake8 || { echo "flake8 errors found!"; exit 1; }

echo "Running isort"
isort --check-only --diff --quiet \
 || { echo "isort errors found! Run 'isort' with no options to fix."; exit 1; }

echo "Running Python tests"
py.test tests/$* --cov-report html --cov treeherder<commit_msg>Bug 1058531 - Don't enable pytest coverage checker in runtests.sh<commit_after>#!/bin/sh

echo "Running flake8"
flake8 || { echo "flake8 errors found!"; exit 1; }

echo "Running isort"
isort --check-only --diff --quiet \
 || { echo "isort errors found! Run 'isort' with no options to fix."; exit 1; }

echo "Running Python tests"
py.test tests/
{'fraction_non_alphanumeric': 0.14561664190193166, 'fraction_numerical': 0.02526002971768202, 'mean_word_length': 3.780141843971631, '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': '2912158', 'n_tokens_mistral': 244, 'n_tokens_neox': 229, 'n_words': 85}