def run_validator(path, for_appversions=None, test_all_tiers=False, overrides=None, compat=False, listed=True):
 from validator.validate import validate
 apps = dump_apps.Command.JSON_PATH
 if (not os.path.exists(apps)):
  call_command('dump_apps')
 with NamedTemporaryFile(suffix=('_' + os.path.basename(path))) as temp:
  if (path and (not os.path.exists(path)) and storage.exists(path)):
   copyfileobj(storage.open(path), temp.file)
   path = temp.name
  with statsd.timer('devhub.validator'):
   json_result = validate(path, for_appversions=for_appversions, format='json', determined=test_all_tiers, approved_applications=apps, overrides=overrides, compat_test=compat, listed=listed)
  track_validation_stats(json_result)
  return json_result

def run_validator ( path , for_appversions = None , test_all_tiers = False , overrides = None , compat = False , listed = True ) : from validator . validate import validate apps = dump_apps . Command . JSON_PATH if ( not os . path . exists ( apps ) ) : call_command ( 'dump_apps' ) with NamedTemporaryFile ( suffix = ( '_' + os . path . basename ( path ) ) ) as temp : if ( path and ( not os . path . exists ( path ) ) and storage . exists ( path ) ) : copyfileobj ( storage . open ( path ) , temp . file ) path = temp . name with statsd . timer ( 'devhub.validator' ) : json_result = validate ( path , for_appversions = for_appversions , format = 'json' , determined = test_all_tiers , approved_applications = apps , overrides = overrides , compat_test = compat , listed = listed ) track_validation_stats ( json_result ) return json_result
a pre-configured wrapper around the app validator .