Appearance
Backend Python defaults (layers, settings, logging, secrets, packages)
Applies to: **/*.py
Checklist
- The dependency rule holds: presentation -> application -> domain; infrastructure -> application -> domain; only
bootstrap.pyimports concretes. - Settings come from the single configuration path resolved at startup and reach layers via ports/dependencies; flag scattered
os.getenvinsrc/. logging.getLogger(__name__)is the logger source; noprintinsrc/(exception:bootstrap.pystartup line); log lines keep a stablekey=valueshape.- Secrets stay out of plain model fields: any secret-bearing field carries
repr=False(orSecretStr) and never enters logs. - New packages exist only as code moves into them; flag empty directory scaffolding and compatibility wrappers kept "for later".
pyproject.tomlstays the single source of tool configuration (ty,ruff,pytest); flag per-tool config files unless a tool requires them.