Talk to folks that work there currently (LinkedIn helps with this) and ask questions when you interview about work/life and whether or not overtime is compensated. As a developer, you have the luxury (that most workers don't these days) of being highly in demand so you can afford to be particular about this if it's a concern.
Startups and the game dev industry are probably a bad choice if you're looking to avoid 40hr+ weeks. Boring SMB software product companies have been bad on this for me (anecdotal, I know) due to misaligned incentives (mainly sales selling product that didn't exist yet.) Consulting has been great on this for me, assuming the folks running the place care about lasting client relationships & quality more than maximizing billable hours.
Startups and the game dev industry are probably a bad choice if you're looking to avoid 40hr+ weeks. Boring SMB software product companies have been bad on this for me (anecdotal, I know) due to misaligned incentives (mainly sales selling product that didn't exist yet.) Consulting has been great on this for me, assuming the folks running the place care about lasting client relationships & quality more than maximizing billable hours.