Preheat your oven to 350°F (175°C). Grease a 9x5-inch loaf pan or line it with parchment paper for easy removal.
In a medium bowl, whisk together the flour, baking soda, baking powder, cinnamon, nutmeg, ginger, and salt. Set aside.
In a large mixing bowl, combine the brown sugar, granulated sugar, and vegetable oil. Mix until well combined.
Add the eggs, pumpkin puree, and vanilla extract to the sugar mixture. Beat until smooth and fully incorporated.
Gradually add the dry ingredients to the wet ingredients, mixing just until combined. Be careful not to overmix. If using, fold in the chopped nuts.
Pour the batter into the prepared loaf pan and smooth the top with a spatula.
Bake for 60-70 minutes, or until a toothpick inserted into the center comes out clean.
Allow the loaf to cool in the pan for about 10 minutes, then transfer it to a wire rack to cool completely before slicing.