In a bowl, mix the flours and eggs, and work the mixture into a soft dough with your hands. When it comes together, roll the pasta out thinly and evenly and place on a surface well-floured with Tipo 00 flour. Set aside.
Pick the soft yellow parts of the courgette flower and chop them up small, being careful not to crush them. Add to a bowl with the ricotta.
Pick the mint leaves and finely chop them and the chilli, and add to the bowl.
Season the mixture with sea salt and black pepper, mix well and spoon into a piping bag with a 1cm nozzle. Pipe teaspoon-sized blobs in a line on the bottom half of the pasta sheet, 3-4cm apart.
Brush the edges around the filling with a little water, then fold the top half of the pasta down onto the half with the filling. Squeeze out any air and press down to seal the edges. With a crinkly pasta cutter, trim into separate ravioli and place on a tray well-floured with Tipo 00 flour.
To make the sauce, slice the tomatoes in half and squeeze the seeds into a sieve over a bowl. Place the empty tomato halves cut-side down in a wide saucepan and add the juice from the seeds. Discard the seeds themselves.
Add enough water to the pan to come half way up the sides of the tomatoes, and season well with sea salt and a little black pepper.
Pick and reserve the basil leaves, then add the whole basil stalks to the pan, cover with a lid and place over a high heat. Bring to the boil, then turn the heat down and cook for 1 to 2 minutes.
Remove the lid and pinch the skins from the tomatoes with a pair of tongs. Discard the skins, then mash the soft tomatoes with a potato masher. Cook, stirring occasionally, until it reduces to a lovely fresh tomato sauce. Fish out the basil stalks and discard. Tear up most of the basil leaves and add to the pan with a good splash of olive oil.
Cook the ravioli in plenty of boiling salted water for 5 minutes, until they have all risen to the top, then use a slotted spoon to transfer them to the pan of tomato sauce. Gently turn the pasta to be coated in the sauce and leave for a minute for the pasta to absorb some of it.
Spoon the ravioli and sauce onto 4 plates and top with some basil leaves and grate over a little pecorino.