Process the walnuts, pinenuts, and garlic in a food processor for about 20 seconds. Add the basil leaves, salt, and pepper. With the processor running, slowly pour the olive oil into the bowl and process until the pesto is thoroughly pureed. Store in an airtight container.