class Dependabot::Uv::UpdateChecker::PipCompileVersionResolver
def uv_pip_compile_options_from_compiled_file(requirements_file)
def uv_pip_compile_options_from_compiled_file(requirements_file) options = [] options << "--no-emit-index-url" unless requirements_file.content.include?("index-url http") options << "--generate-hashes" if requirements_file.content.include?("--hash=sha") options << "--no-annotate" unless requirements_file.content.include?("# via ") options << "--pre" if requirements_file.content.include?("--pre") options << "--no-strip-extras" if requirements_file.content.include?("--no-strip-extras") if requirements_file.content.include?("--no-binary") || requirements_file.content.include?("--only-binary") options << "--emit-build-options" end if (resolver = FileUpdater::CompileFileUpdater::RESOLVER_REGEX.match(requirements_file.content)) options << "--resolver=#{resolver}" end options << "--universal" if requirements_file.content.include?("--universal") options end