class Dependabot::Uv::FileFetcher

def requirements_file?(file)

def requirements_file?(file)
  return false unless file.content.valid_encoding?
  return true if file.name.match?(/requirements/x)
  file.content.lines.all? do |line|
    next true if line.strip.empty?
    next true if line.strip.start_with?("#", "-r ", "-c ", "-e ", "--")
    line.match?(RequirementParser::VALID_REQ_TXT_REQUIREMENT)
  end
end