def _write_metric(metric, filename):
 Env.METRICS_DIR.makedirs_p()
 with open(filename, 'w') as metric_file:
  metric_file.write(str(metric))

def _write_metric ( metric , filename ) : Env . METRICS_DIR . makedirs_p ( ) with open ( filename , 'w' ) as metric_file : metric_file . write ( str ( metric ) )
write a given metric to a given file used for things like reports/metrics/eslint .