class Dependabot::Uv::FileUpdater::CompileFileUpdater

def compile_new_requirement_files

def compile_new_requirement_files
  SharedHelpers.in_a_temporary_directory do
    write_updated_dependency_files
    language_version_manager.install_required_python
    filenames_to_compile.each do |filename|
      compile_file(filename)
    end
    # Remove any .python-version file before parsing the reqs
    FileUtils.remove_entry(".python-version", true)
    dependency_files.filter_map do |file|
      next unless file.name.end_with?(".txt")
      updated_content = File.read(file.name)
      updated_content =
        post_process_compiled_file(updated_content, file)
      next if updated_content == file.content
      file.dup.tap { |f| f.content = updated_content }
    end
  end
end