src layout vs flat layout: which to use and why

55 · Python Developer Tooling Handbook – pydevtools.com · July 29, 2026, 12:40 p.m.
Summary
This blog post compares the flat layout and src layout for Python projects, highlighting the implications of each on test efficacy and production reliability. It argues that the choice of layout can significantly affect whether packaging mistakes are caught during local tests or after deployment.