Repository navigation
chore(omnibase_infra): PEP 604 + mypy cleanup [std-sweep] - #890
Conversation
|
Warning Rate limit exceeded
⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (21)
📝 WalkthroughWalkthroughThis pull request refactors imports across 18 modules, including consolidating import sources, removing runtime casts in favor of type annotations, reorganizing import statements, and expanding public API exports via Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
Comment |
Fix mypy --strict errors: fix incorrect cross-module imports (import from source modules rather than re-exporting modules without __all__ entries), remove redundant cast() calls, update __all__ declarations to include all publicly used symbols, and fix ClusterMetadata import to use TYPE_CHECKING guard for the confluent_kafka.admin type. SPDX headers were already clean (0 files needed stamping). Type-union violations in identified files were all in string literals (LLM prompt templates explaining the standard), not actual annotations.
…st fixture [OMN-5132] OMN-5240 (#877) added context-audit-consumer to docker-compose with a required :? env var but did not update the test_compose_config_valid fixture, causing Docker Integration Tests to fail on all branches rebased after that merge.
6c5ab6d to
908652c
Compare
Summary
Standardization sweep fixes for omnibase_infra:
mypy Fixes
__all__cast()calls in 5 dispatchers/adapters/plugins__all__declarations in 4 modules to include publicly used symbolsClusterMetadataimport inbus_audit.pyto useTYPE_CHECKINGguard (confluent_kafka doesn't export it explicitly)InvalidSignatureto import directly fromcryptography.exceptionsrather than through omnibase_core re-exportTest plan
uv run mypy src/ --strict --no-error-summary— 0 errorsuv run ruff check src/— All checks passedpre-commit run --all-files— All hooks passed (including ONEX Any Type Validation, SPDX, Union Usage)--no-verifySummary by CodeRabbit
Release Notes
Refactor
Chores