@task
@cmdopts([('skip-clean', 'C', 'skip cleaning repository before running tests'), ('skip_clean', None, 'deprecated in favor of skip-clean')])
@timed
def clean_reports_dir(options):
 if getattr(options, 'skip_clean', False):
  print '--skip-clean is set, skipping...'
  return
 reports_dir = Env.REPORT_DIR.makedirs_p()
 clean_dir(reports_dir)

@ task @ cmdopts ( [ ( 'skip-clean' , 'C' , 'skip cleaning repository before running tests' ) , ( 'skip_clean' , None , 'deprecated in favor of skip-clean' ) ] ) @ timed def clean_reports_dir ( options ) : if getattr ( options , 'skip_clean' , False ) : print '--skip-clean is set, skipping...' return reports_dir = Env . REPORT_DIR . makedirs_p ( ) clean_dir ( reports_dir )
clean coverage files .