Spray two 8-inch cake pans with cooking spray, line with parchment, then spray the parchment.
Preheat oven to 350°F. Adjust rack to center of oven.
In a medium bowl, whisk together flour, salt, spices, baking powder and baking soda.
Using the grating blade of a food processor, grate carrots. Add carrots, nuts, and raisins to flour mixture and set aside. Wipe out food processor bowl.
With the metal chopping blade in place, place sugars and eggs in the food processor bowl. Process until frothy and completely combined, about 20 seconds.
While the processor is running, pour in the oil, and process until well blended, about 20 seconds.
Scrape batter from processor into a large bowl. Add flour/carrot mixture and stir until combined.
Divide batter between the two cake pans, and bake for 45 to 50 minutes, rotating halfway through baking, or until a toothpick inserted in the center comes out clean.
Remove to rack and let cool for at least 2 hours, then run a knife around the edge and turn out cakes.