The Texas Code of Judicial Conduct prohibits state judges from endorsing political candidates. And that’s why the State Commission on Judicial Conduct has disciplined two Dallas district court judges who ran on a political slate together last year and endorsed each other’s candidacy.

The commission issued two public warnings to both Kim Cooks, judge of the 255th District Court, which handles family law, and Andrea Martin, judge of the 304th District Court, which handles juvenile law.