| name | comment-style |
| description | How to write comments and docstrings in the dlthub-start CLI (src/create_dlthub_workspace/**). Use when adding/editing a comment or docstring, or reviewing a diff for comment quality. |
Comment & docstring style
Keep comments terse and factual. Avoid generated-sounding prose that narrates
reasoning, tradeoffs, or history.
Rules
- Delete first. If the name, params, or the line already say it, drop the comment.
- ≤2 lines. Longer means the prose is the problem — cut, don't reformat.
- State what, not the story. What it does, plus the one non-obvious why. No alternatives-considered, no history.
- Match siblings. Private helpers here usually have no docstring; don't add one just because it's new.
- Don't restate the function name or self-describing params (
stream=False).
Test
Keep a comment only if removing it makes a maintainer guess wrong about
something not visible in the code. Good keeper (one line):
Drop restatements:
STREAM_LOG_STYLE = "dim cyan"