from bs4 import BeautifulSoup
import re
import logging


def skip_team(soup: BeautifulSoup) -> bool:
    """Skip team if no players meet the minimum

    :param soup: BeautifulSoup object for a team
    :returns: True if the team should be skipped, False otherwise
    """
    pattern = re.compile("No players meet the minimum")
    skip = len(soup.find_all(string=pattern)) > 0
    if skip:
        logging.warning("No players meet the minimum. Skipping team")
    return skip