Montana constitution
Article VII: the judiciary
Section 9

(4) Supreme court justices shall reside within the state. During his term of office, a district court judge shall reside in the district and a justice of the peace shall reside in the county in which he is elected or appointed. The residency requirement for every other judge must be provided by law.