<commit_before>import pytest
from subprocess import CalledProcessError, check_output as run

FLAKE8_COMMAND = 'flake8'

FLAKE8_INPUTS = [
    'skylines',
    'scripts',
]


def test_flake8():
    """ Run skylines package through flake8 """
    args = [FLAKE8_COMMAND]

    # Append package name that should be checked
    args.extend(FLAKE8_INPUTS)

    try:
        run(args)
    except CalledProcessError, e:
        print e.output
        raise AssertionError('flake8 has found errors.')
    except OSError:
        raise OSError('Failed to run flake8. Please check that you have '
                      'installed it properly.')<commit_msg>tests: Added tests folder to flake8 checks<commit_after>import pytest
from subprocess import CalledProcessError, check_output as run

FLAKE8_COMMAND = 'flake8'

FLAKE8_INPUTS = [
    'skylines',
    'scripts',
    'tests'
]


def test_flake8():
    """ Run skylines package through flake8 """
    args = [FLAKE8_COMMAND]

    # Append package name that should be checked
    args.extend(FLAKE8_INPUTS)

    try:
        run(args)
    except CalledProcessError, e:
        print e.output
        raise AssertionError('flake8 has found errors.')
    except OSError:
        raise OSError('Failed to run flake8. Please check that you have '
                      'installed it properly.')
{'fraction_non_alphanumeric': 0.08051166290443942, 'fraction_numerical': 0.014296463506395787, 'mean_word_length': 2.8439306358381504, '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': '1043623', 'n_tokens_mistral': 428, 'n_tokens_neox': 417, 'n_words': 122}