def print_files_information_pep8():
 infracting_files = []
 non_infracting_files = []
 pep8_checker = StyleGuide(quiet=True)
 for path in list_files('.py'):
  number_of_infractions = pep8_checker.input_file(path)
  rel_path = os.path.relpath(path, pylearn2.__path__[0])
  if (number_of_infractions > 0):
   if (rel_path not in whitelist_pep8):
    infracting_files.append(path)
  elif (rel_path in whitelist_pep8):
   non_infracting_files.append(path)
 print('Files that must be corrected or added to whitelist:')
 for file in infracting_files:
  print(file)
 print('Files that can be removed from whitelist:')
 for file in non_infracting_files:
  print(file)

def print_files_information_pep8 ( ) : infracting_files = [ ] non_infracting_files = [ ] pep8_checker = StyleGuide ( quiet = True ) for path in list_files ( '.py' ) : number_of_infractions = pep8_checker . input_file ( path ) rel_path = os . path . relpath ( path , pylearn2 . __path__ [ 0 ] ) if ( number_of_infractions > 0 ) : if ( rel_path not in whitelist_pep8 ) : infracting_files . append ( path ) elif ( rel_path in whitelist_pep8 ) : non_infracting_files . append ( path ) print ( 'Files that must be corrected or added to whitelist:' ) for file in infracting_files : print ( file ) print ( 'Files that can be removed from whitelist:' ) for file in non_infracting_files : print ( file )
print the list of files which can be removed from the whitelist and the list of files which do not respect pep8 formatting that arent in the whitelist .