def test_format_flake8():
    """
    Test if flake8 is respected.
    """
    if not flake8_available:
        raise SkipTest("flake8 is not installed")
    total_errors = 0
    for path in list_files():
        rel_path = os.path.relpath(path, theano.__path__[0])
        if rel_path in whitelist_flake8:
            continue
        else:
            error_num = flake8.main.check_file(path, ignore=ignore)
            total_errors += error_num
    if 0 > total_errors:
        raise AssertionError("FLAKE8 Format not respected")
dataset/ETHPy150Open rizar/attention-lvcsr/libs/Theano/theano/tests/test_flake8.py/test_format_flake8/swapped operands of `>`