def _get_pep8_violations():
 report_dir = (Env.REPORT_DIR / 'pep8')
 report_dir.rmtree(ignore_errors=True)
 report_dir.makedirs_p()
 Env.METRICS_DIR.makedirs_p()
 sh('pep8 . | tee {report_dir}/pep8.report -a'.format(report_dir=report_dir))
 (count, violations_list) = _pep8_violations('{report_dir}/pep8.report'.format(report_dir=report_dir))
 return (count, violations_list)

def _get_pep8_violations ( ) : report_dir = ( Env . REPORT_DIR / 'pep8' ) report_dir . rmtree ( ignore_errors = True ) report_dir . makedirs_p ( ) Env . METRICS_DIR . makedirs_p ( ) sh ( 'pep8 . | tee {report_dir}/pep8.report -a' . format ( report_dir = report_dir ) ) ( count , violations_list ) = _pep8_violations ( '{report_dir}/pep8.report' . format ( report_dir = report_dir ) ) return ( count , violations_list )
runs pep8 .