On August 30, U.S. District Court Judge Robert Pitman, an Obama appointee, struck down an Austin, Texas campaign finance restriction. Virden v City of Auustin, Texas, w.d., 1:21cv-271. The law forbade candidates for city office to receive campaign contributions more than one year before the election. Here is the 18-page decision.
It seems logical that if the First Amendment prevents governments from outlawing raising money outside of some designated period, by analogy the First Amendment ought to also prevent governments from barring candidates and parties from petitioning outside of designated periods. The U.S. Supreme Court has held that petitioning is First Amendment activity. Thanks to the Institute for Free Speech for news about this decision.