Preheat your oven to 350°F (175°C). Grease or line a 9×5-inch loaf pan with parchment paper.
In a large bowl, whisk together the flour, baking soda, baking powder, salt, cinnamon, nutmeg, and ginger until well combined.
In a separate bowl, whisk the vegetable oil, brown sugar, granulated sugar, eggs, and vanilla extract until smooth and glossy.
Add the wet ingredients to the dry ingredients and gently mix until just combined. Do not overmix.
Fold in the grated carrots, then add nuts and raisins if using. Mix lightly until evenly distributed.
Pour the batter into the prepared loaf pan and smooth the top with a spatula.
Bake for 55–65 minutes, or until a toothpick inserted into the center comes out with a few moist crumbs.
Remove from the oven and let the loaf cool in the pan for 15 minutes, then transfer to a wire rack to cool completely before slicing.