def zip_filter()

in infra/upload_assets.py [0:0]


def zip_filter(filename: str) -> bool:
    """Returns true if file and not in ignore list

    Args:
        filename (str): file name

    Returns:
        bool: True if should filter
    """
    dir_name = os.path.basename(os.path.dirname(filename))
    base_name = os.path.basename(filename)
    return (
        os.path.isfile(filename)
        and base_name not in [".DS_Store"]
        and not dir_name == "cdk.out"
        and not dir_name == "__pycache__"
        and not filename.endswith(".pyc")
        and not dir_name.endswith(".egg-info")
    )