In a medium bowl, whisk together the flour, baking powder, baking soda, and salt. Set aside. In a small bowl, add the sugar and lemon zest. Rub the lemon zest and sugar together with your fingers. Using an electric mixer, beat the butter and sugar and lemon zest mixture together until light and fluffy, about two minutes. Add the ricotta cheese and beat until smooth. Beat in the egg, lemon juice, and vanilla extract.