Esempio n. 1
0
def test_pep8():
    report = StyleGuide(ignore=['E501', 'E402']).check_files(
        [dirname(abspath(__file__)) + '/../'])
    report.print_statistics()

    if report.messages:
        raise Exception("pep8")
Esempio n. 2
0
def test_pep8():
    report = StyleGuide(ignore=['E126', 'E501', 'E402']).check_files([
        os.path.dirname(os.path.abspath(__file__)) + '/../spark_helpers',
        '/shared/fabfile.py'
    ])
    report.print_statistics()

    if report.messages:
        raise Exception("pep8")