Skip to content

fix(mypy): preserve complete diagnostics - #3316

Open
Agistaris wants to merge 1 commit into
rtk-ai:developfrom
Agistaris:fix/mypy-preserve-diagnostics
Open

fix(mypy): preserve complete diagnostics#3316
Agistaris wants to merge 1 commit into
rtk-ai:developfrom
Agistaris:fix/mypy-preserve-diagnostics

Conversation

@Agistaris

Copy link
Copy Markdown

Summary

  • Preserve Mypy columns, severities, error codes, full messages, notes, native summaries, warnings, and fileless diagnostics.
  • Keep deterministic ordering without truncating diagnostic text.
  • Retain the shorter representation only when it remains fidelity-safe.

Test plan

  • cargo fmt --all -- --check
  • cargo clippy --all-targets
  • Complete Cargo test matrix
  • Manual Mypy 2.3.0 output comparison

The current focused command passes all 11 Mypy filter tests. The complete Cargo matrix passes. A real ephemeral Mypy 2.3.0 fixture preserved 24/24 diagnostics, every column, severity, code, complete message, note, native summary, and the nonzero exit status. The selected RTK representation reduced 3,037 characters to 2,886 characters (4.97%).

@CLAassistant

CLAassistant commented Jul 30, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@Agistaris
Agistaris marked this pull request as ready for review July 30, 2026 09:43
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.

2 participants