def session_check_requirements(session):
 session.install(GCP_REPO_TOOLS_REQ)
 if ('update' in session.posargs):
  command = 'update-requirements'
 else:
  command = 'check-requirements'
 reqfiles = list(_list_files('.', 'requirements*.txt'))
 for reqfile in reqfiles:
  session.run('gcprepotools', command, reqfile)

def session_check_requirements ( session ) : session . install ( GCP_REPO_TOOLS_REQ ) if ( 'update' in session . posargs ) : command = 'update-requirements' else : command = 'check-requirements' reqfiles = list ( _list_files ( '.' , 'requirements*.txt' ) ) for reqfile in reqfiles : session . run ( 'gcprepotools' , command , reqfile )
checks for out of date requirements and optionally updates them .