Skip to content

Conversation

@dannywillems
Copy link
Contributor

Summary

  • Add make typecheck step to Linux/macOS CI jobs
  • Add poetry run mypy leakix/ to Windows CI job
  • Type errors are now caught before merge

Test plan

  • CI workflow syntax is valid
  • make typecheck runs successfully locally

Closes #42

Add make typecheck step to Linux/macOS jobs and direct
poetry run mypy to the Windows job.

Closes #42
- Install types-requests for proper request library stubs
- Create local stubs for serde and l9format (no py.typed upstream)
- Add type: ignore[valid-type] on serde Model field annotations
  (serde's metaclass pattern is incompatible with static typing)
- Fix serialized_query assignment errors by using separate variable
- Point mypy to stubs/ via mypy_path in pyproject.toml
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.

Add mypy type checking to CI workflow

1 participant