Repository navigation
ci(mypy): wire mypy into code-quality CI — enforce on autobot_shared (GH#7105) - #7641
Merged
Merged
Conversation
…hared (GH#7105) - Add [tool.mypy] config to pyproject.toml (python_version=3.12, ignore_missing_imports, exclude tests/conftest/code_analysis standalone tool) - Suppress redis_client / workflow_memory / message_bus via per-module ignore_errors (async/sync dual-dispatch unmodelable without overloads) - Fix 12 genuine type errors in autobot_shared/ production code (assert-narrowing, Optional params, type annotations, type: ignore for OTel stubs / local-backend imports / unbound TypeVars / redis ping stubs) - Remove comment-only autobot-backend/__init__.py (invalid pkg name blocked mypy) - Add __init__.py to four autobot-backend sub-packages missing it (intelligence/, metrics/, middleware/, protocols/) to resolve "found twice" duplicate-module errors - CI: blocking mypy step on autobot_shared/ (0 errors proven); informational non-blocking steps on autobot-backend/ (4133 pre-existing) and autobot-slm-backend/ (1281 SQLAlchemy Column[T] errors) — both tracked for resolution in GH#7105 Co-Authored-By: Paperclip <noreply@paperclip.ai> Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Contributor
✅ SSOT Configuration Compliance: Passing🎉 No hardcoded values detected that have SSOT config equivalents! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
python3 -m mypy autobot_shared/must exit 0 on every PR (blocking)autobot-backend/andautobot-slm-backend/run non-blocking to surface regressions while pre-existing errors are resolved in GH#7105[tool.mypy]section added topyproject.toml— Python 3.12,ignore_missing_imports, excludes test files andcode_analysis/standalone toolautobot_shared/production code (narrowing, Optional params, type annotations, inline suppression for OTel stubs / redis ping stubs / local-backend imports)__init__.pyfiles created inautobot-backend/intelligence/,metrics/,middleware/,protocols/(resolved "found twice" duplicate-module errors)autobot-backend/__init__.py(hyphenated name is invalid as a Python package; was blocking mypy entirely)Pre-existing error counts (informational, not blocking)
autobot-backend/autobot-slm-backend/Column[T]vsTpattern — tracked in GH#7105Test plan
Type-check autobot_sharedstep exits 0)🤖 Generated with Claude Code