#NEWLINE# def run( config ) : #NEWLINE# #INDENT# '\n    Main function of libs:\n    - Find WordPress versions\n    - Find outdated plugins\n\n    :param config: PlecostOptions option instance\n    :type config: `PlecostOptions`\n\n    :raises: PlecostTargetNotAvailable, PlecostNotWordPressFound, PlecostWordListNotFound\n    ' #NEWLINE# if ( version_info < ( 3 , 3 ) ) : #NEWLINE# #INDENT# raise RuntimeError ( 'You need Python 3.3.x or higher to run Plecost' ) #NEWLINE# #UNINDENT# if ( config . report_filename is not None ) : #NEWLINE# #INDENT# reporter_function = get_reporter ( config . report_filename ) #NEWLINE# #UNINDENT# data = find_versions ( config ) #NEWLINE# if ( config . report_filename is not None ) : #NEWLINE# #INDENT# report = reporter_function ( config . report_filename ) #NEWLINE# content = report . generate ( data ) #NEWLINE# report . save ( content )