— 01🪜Alignment
Equals signs, colons, the import keyword, and match arrows line up across consecutive lines. The eye drops down the column.
— 02📰Docs
Docstrings follow the same legibility discipline as code. Wrap to the docstring budget, put a one-line docstring's opener, body, and closer on lines of their own, and keep the quote style consistent throughout.
— 03🪶Formatting
Trailing commas come off, blank lines snap to canonical counts, backslash continuations and redundant -> None annotations fall away, and a stale __future__ import is removed once nothing needs it. The scaffolding clears after the shape is set.
— 04🧺Layout
Calls, signatures, collections, and from-imports that outgrow the line budget explode to one entry per line. Each argument, key, or name lands on its own row, so the eye reads down the column and a later edit touches a single line.
— 05🧶Lint
Missing signature annotations, reassigned constants, step-narration comments, bare imports, and bindings whose value inlines for free are reported as findings. The formatter never rewrites these, because the fix belongs to the reader.
— 06Ordering
Sibling entries sort into a predictable order. Imports, dictionary keys, and set members read top-to-bottom by name, so a reader looking for an entry already knows where it sits.
— 01🪜Alignment
Equals signs, colons, the import keyword, and match arrows line up across consecutive lines. The eye drops down the column.
— 02📰Docs
Docstrings follow the same legibility discipline as code. Wrap to the docstring budget, put a one-line docstring's opener, body, and closer on lines of their own, and keep the quote style consistent throughout.
— 03🪶Formatting
Trailing commas come off, blank lines snap to canonical counts, backslash continuations and redundant -> None annotations fall away, and a stale __future__ import is removed once nothing needs it. The scaffolding clears after the shape is set.
— 04🧺Layout
Calls, signatures, collections, and from-imports that outgrow the line budget explode to one entry per line. Each argument, key, or name lands on its own row, so the eye reads down the column and a later edit touches a single line.
— 05🧶Lint
Missing signature annotations, reassigned constants, step-narration comments, bare imports, and bindings whose value inlines for free are reported as findings. The formatter never rewrites these, because the fix belongs to the reader.
— 06Ordering
Sibling entries sort into a predictable order. Imports, dictionary keys, and set members read top-to-bottom by name, so a reader looking for an entry already knows where it sits.