<commit_before>import pep8


def test_pep8_comformance():
    ''' Test that the code conforms to PEP8 '''
    pep8style = pep8.StyleGuide(config_file='.pep8')
    result = pep8style.check_files(['tsstats.py', 'tests/test_config.py', 'tests/test_general.py', 'tests/test_style.py'])
    assert result.total_errors == 0<commit_msg>use glob to select files for stylecheck<commit_after>import pep8
from glob import glob


def test_pep8_comformance():
    ''' Test that the code conforms to PEP8 '''
    pep8style = pep8.StyleGuide(config_file='.pep8')
    files = glob('tests/*.py')
    files.append('tsstats.py')
    result = pep8style.check_files(files)
    assert result.total_errors == 0
{'fraction_non_alphanumeric': 0.12809315866084425, 'fraction_numerical': 0.023289665211062592, 'mean_word_length': 4.504, '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': '1506596', 'n_tokens_mistral': 243, 'n_tokens_neox': 236, 'n_words': 51}