Put a large pot of water onto boil. Toast the pinenuts and set half aside to serve at the end.
Make the pangrattato: blitz the bread to fine crumbs in a food processor/blender (remove the crusts first if particularly tough). Toast with a few tbsp olive oil in a pan with generous salt and pepper for 5-10 minutes until golden brown and crunchy. Taste for seasoning. Add chilli/lemon zest if you like. Set aside.
To make the pesto: blanch the kale in your boiling water for 30 seconds then remove with tongs and drain in a colander (leave the pot boiling to cook the gnocchi).
Combine the kale in a food processor/blender with the remaining pesto ingredients and blitz to a smooth paste - add a bit of extra water to loosen if needed.
To make the gnocchi: if your ricotta seems very wet/watery, press between a few layers of paper towels to remove as much of the excess liquid as you can (the less flour you have to add to the gnocchi, the lighter they end up)
Stir together the ricotta, egg, egg yolk and parmesan with a fork until relatively cohesive and not lumpy. Season with salt and black pepper.
Add 100g flour and gently stir to just combine. Add 1-2 tbsp extra flour if it seems particularly wet - you just need to be able to roll it out on a flour dusted surface.
Divide it into 4 pieces. On a floured surface, roll each out into a long snake then cut into 1-2cm pieces with a sharp knife.
In batches, add the gnocchi to boiling water and cook until they float to the surface (a few minutes). Scoop out with a slotted spoon and transfer straight into a large lightly oiled pan on low heat. When they’re all cooked, save a scoop of extra gnocchi cooking water for the sauce.