In a food processor, add the basil leaves, garlic, pine nuts, salt, black pepper, and grated cheese. Pulse the machine until the ingredients are coarsely chopped.
With the machine running, slowly add the olive oil. Scrape the sides of the bowl with a rubber spatula as needed. Transfer the pesto to a small cup and set aside.