 Don't buy them and make sure they're not soft. Now one thing about pumpkins that everyone should know that pumpkins is a soft squash, not a hard squash. So don't hold them for too long otherwise they'll become super soft and there's nothing you can do with them because they'll be full of decay.