Skip to content

v0.2.2: style Apply ruff format across the tree; fence hand-grouped field tables

Latest

Choose a tag to compare

@lolifamily lolifamily released this 21 Jun 10:25
9ea1b60
The lint CI added earlier runs `ruff format --check`, but the source was
never actually run through the formatter, so CI would fail on its first
run. Reflow everything to what ruff format produces: one argument per
line in multi-arg signatures, one key per line in dict literals, expanded
bs.query(...) calls. Pure whitespace, zero behavior change.

One exception is fenced off: baostock_client's SEMICOLON_FIELDS /
NUMERIC_FIELDS are hand-grouped by baostock API family (several fields
per line). ruff format only knows one-per-line or all-on-one-line, either
of which explodes ~50 readable lines into 100+ and destroys the grouping,
so those tables now sit inside `# fmt: off` / `# fmt: on`. Added a note
that the directives must each be alone on their line — trailing prose
turns them into ordinary comments and silently disables the fence.

_RETRY_ERROR_CODES and _INDICATORS are deliberately left unfenced: their
per-entry comments and table shape survive the reflow, so they aren't
worth the fence noise.

Bump version 0.2.1 -> 0.2.2; uv.lock follows.