Cook the pasta according to standard package directions.
Combine the flour, salt, and pepper in a bag or bowl. Add the scallops and toss or shake to coat.
In a large skillet, cook the scallops in butter for 2 1/2 to 3 minutes on each side or until opaque.
Drain the pasta; toss with pesto. Top with scallops.