Do not use a single hyphen when a dash is needed (or vice versa). Two side-by-side hyphens are equivalent to a dash. In fact, your word-processing program may automatically convert these into a dash, which is longer than a single hyphen.
Example: The chefs daughter - hoping to follow in her fathers footsteps - soon developed her own secret recipe for tiramisu.
Revised: The chefs daughterhoping to follow in her fathers footstepssoon developed her own secret recipe for tiramisu.
Here the single hyphen has been replaced with a dash.
Revised: The chefs daughter--hoping to follow in her fathers footsteps--soon developed her own secret recipe for tiramisu.
Here the single hyphen has been replaced by two side-by-side hyphens, which are equivalent to a dash.