Constraints on single-field inflation