How did Brittany remain independent from France for practically all of the middle ages?

by Dragonsandman
Xxxn00bpwnR69xxX

A slightly different question: How did Brittany become part of France at the end of the middle ages despite France seemingly having no land or dynastic claims over it?