def METHOD_NAME(write_list: list[str]) -> set[str]:
    """Simplify write_list based on ``"none"`` and ``"all"`` keywords.
    ``"none"`` resets the enabled rule transforms.
    This returns ``{"none"}`` or a set of everything after the last ``"none"``.
    If ``"all"`` is in the ``write_list`` (after ``"none"`` if present),
    then this will return ``{"all"}``.
    """
    none_indexes = [i for i, value in enumerate(write_list) if value == "none"]
    if none_indexes:
        index = none_indexes[-1]
        if len(write_list) > index + 1:
            index += 1
        write_list = write_list[index:]
    if "all" in write_list:
        return {"all"}
    return set(write_list)