How do you dry homemade pasta so that it stays straight?
Hang-dry pasta on a pole will result in the most straight pastas.

the finer (smaller) diameter pole you can find will result in smaller curvature in the pasta where they bend on the pole.

I've seen people use a metallic cloth dryer or metallic coat hangers (hanging on a pole of some sort)