def _filter_rule(args, rule):
    """Check if the given rule passes the filter specified in args.

    Args:
        args (Namespace): The arguments namespace
        rule (Rule): The rule to check

    Return:
        bool: True if the rule passes the filter (and should be included in output)
    """
    if args.pinned:
        return rule.get('auto_update') != True
    return True
