Combine the pine nuts, lemon juice, garlic, salt, pepper, and pulse in a food processor until well chopped.
Add the basil and pulse until combined.
Drizzle in the olive oil and pulse until combined with the food processor running. Add the nutritional yeast or parmesan cheese, if using, and pulse to combine. For a smoother pesto, add more olive oil.