Skip to content

Add Supabase target provider#6

Merged
MaxGhenis merged 1 commit intomainfrom
db-target-provider
Apr 25, 2026
Merged

Add Supabase target provider#6
MaxGhenis merged 1 commit intomainfrom
db-target-provider

Conversation

@MaxGhenis
Copy link
Copy Markdown
Contributor

@MaxGhenis MaxGhenis commented Apr 25, 2026

Summary

  • add SupabaseTargetProvider to convert Supabase target rows into core TargetSpec/TargetSet objects
  • preserve raw SupabaseTargetLoader behavior while adding provider/query filters for period, entity, target type, states, institution, and unsupported-variable inclusion
  • classify target metadata including source, stratum, target type, US category/level, and whether the variable is mapped to a known column

Verification

  • UV_FROZEN=1 uv run --extra dev ruff check src/microplex_us/supabase_targets.py tests/targets/test_supabase.py
  • UV_FROZEN=1 uv run --extra dev pytest -q tests/targets/test_supabase.py tests/test_package_imports.py
  • UV_FROZEN=1 uv run --extra dev --with pydantic --with-editable ../microplex pytest -q tests/test_package_imports.py tests/targets/test_supabase.py tests/pipelines/test_check_site_snapshot.py tests/pipelines/test_imputation_ablation.py tests/pipelines/test_site_snapshot.py tests/pipelines/test_version_benchmark.py
  • GitNexus impact: low risk, 0 affected processes
  • GitNexus detect-changes: low risk, 0 affected processes

Note: tests/test_target_adapters.py in the plain dev env still requires optional h5py; this PR does not change that dependency boundary.

@MaxGhenis MaxGhenis merged commit 1f014d8 into main Apr 25, 2026
1 check passed
@MaxGhenis MaxGhenis deleted the db-target-provider branch April 25, 2026 23:25
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