Skip to content

Fix stale databento.py docstring; derive _DATABENTO_UNSUPPORTED from registry - #75

Merged
mspinola merged 1 commit into
mainfrom
databento-docstring-cleanup
Jul 27, 2026
Merged

mspinola merged 1 commit into
mainfrom
databento-docstring-cleanup

Conversation

@mspinola

Copy link
Copy Markdown
Owner

Two small cleanups left over from the databento arc.

Docstring. providers/databento.py still opened with "DORMANT. NOT in the live EOD path (Norgate replaced it)" — false since ADR-0006, as the file now hosts the live ingest/build producer that update.py drives. Rewritten to describe both parts: the LIVE two-stage producer (databento as a validated alternative to Norgate) and the genuinely DORMANT older EOD helpers retained for the intraday work.

_DATABENTO_UNSUPPORTED. Was a hardcoded set {CC, OJ, SB, KC, LBR, CT} duplicating the registry's authoritative databento: null mapping, and it had drifted (missed DX, MME, MFS). Now derived from the registry so it can't go stale. Verified import-safe with COTDATA_STORE unset.

54 databento/registry tests pass, ruff clean. No behavior change on the live path.

🤖 Generated with Claude Code

…the registry

The module docstring still said "DORMANT. NOT in the live EOD path", but the file now
hosts the live ADR-0006 two-stage producer (ingest/build) that update.py drives. Rewrote
it to describe both parts: the LIVE producer (databento as a validated alternative to
Norgate) and the genuinely dormant older EOD helpers kept for the intraday work.

_DATABENTO_UNSUPPORTED was a hardcoded set (CC/OJ/SB/KC/LBR/CT) that duplicated and had
drifted from the registry's authoritative `databento: null` mapping (it missed DX, MME,
MFS). Derive it from the registry so it can't go stale.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@mspinola
mspinola merged commit 47b483e into main Jul 27, 2026
5 checks passed
@mspinola
mspinola deleted the databento-docstring-cleanup branch July 27, 2026 22:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant