I have had Civ 6 Gandhi declare war on me, but only extremely early in the game. Which suggests that, as the Kotaku article indicates, he'll only do so if he won't be warmongering.
I'm in the middle of a game of Civ VI right now. Gandhi will not stay happy with me and he keeps declaring war on me every 40 turns or so. But I just took his capital so let's see if we can get him to knock it off.