Danilo Petrucci will return to MotoGP as a replacement for Enea Bastianini at Le Mans next weekend.