

@pytest.mark.skipif((not tests.LINT), reason='No lint tests.')
def test_pep8_and_complexity():
    result = []
    for filename in _collect_static([source_dir, tests_dir]):
        result.append(subprocess.call(['flake8', filename]))
    if any(result):
        raise RuntimeError('Tests for PEP8 compliance and complexity have failed!')

dataset/ETHPy150Open beregond/jsonmodels/tests/test_project.py test_pep8_and_complexity/original