We have a standard for judging partisan gerrymandering. The Supreme Court should use it.

In his farewell address to the nation, then-President Barack Obama called for an end to partisan gerrymandering, saying that congressional districts should be drawn “to cater to common sense and not rigid extremes.
Source: We have a standard for judging partisan gerrymandering. The Supreme Court should use it.