Skip to content

bug(ci): pre-commit uv run mypy reports 96 a2a/protobuf errors that don't reproduce in .venv mypy #411

@bokelley

Description

@bokelley

Context

Every PR in the recent batch had to SKIP=mypy or --no-verify because uv run mypy src/adcp/ fails with 96 errors in client.py / protocols/a2a.py from a2a-sdk protobuf stubs. CI mypy passes cleanly. The hooks are bypassed routinely, defeating the point of having them.

Acceptance Criteria

  • uv run mypy src/adcp/ reproduces clean locally (matches CI behavior)
  • Pre-commit hooks no longer require routine bypass
  • Solution is one of: pin a2a-sdk version, add type stubs, or exclude the affected files from mypy

Files

  • .pre-commit-config.yaml
  • pyproject.toml (mypy config)
  • src/adcp/client.py
  • src/adcp/protocols/a2a.py

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions