def get_python_files(all_files=None):
 if (all_files is None):
  (all_files, diff_base) = get_affected_files()
 library_files = []
 non_library_files = []
 for filename in all_files:
  if valid_filename(filename):
   if is_production_filename(filename):
    library_files.append(filename)
   else:
    non_library_files.append(filename)
 return (library_files, non_library_files, diff_base)

def get_python_files ( all_files = None ) : if ( all_files is None ) : ( all_files , diff_base ) = get_affected_files ( ) library_files = [ ] non_library_files = [ ] for filename in all_files : if valid_filename ( filename ) : if is_production_filename ( filename ) : library_files . append ( filename ) else : non_library_files . append ( filename ) return ( library_files , non_library_files , diff_base )
gets a list of all python files in the repository that need linting .