def print_files_information_flake8():
 infracting_files = []
 non_infracting_files = []
 for path in list_files():
  rel_path = os.path.relpath(path, theano.__path__[0])
  number_of_infractions = flake8.main.check_file(path, ignore=ignore)
  if (number_of_infractions > 0):
   if (rel_path not in whitelist_flake8):
    infracting_files.append(rel_path)
  elif (rel_path in whitelist_flake8):
   non_infracting_files.append(rel_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_flake8 ( ) : infracting_files = [ ] non_infracting_files = [ ] for path in list_files ( ) : rel_path = os . path . relpath ( path , theano . __path__ [ 0 ] ) number_of_infractions = flake8 . main . check_file ( path , ignore = ignore ) if ( number_of_infractions > 0 ) : if ( rel_path not in whitelist_flake8 ) : infracting_files . append ( rel_path ) elif ( rel_path in whitelist_flake8 ) : non_infracting_files . append ( rel_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 flake8 formatting that arent in the whitelist .