bloomberg / blazingmq-sdk-python

Python SDK for BlazingMQ, a modern high-performance open source message queuing system.

Home Page:https://bloomberg.github.io/blazingmq/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add typechecking to the CI

pniedzielski opened this issue · comments

Our Python SDK makes use of type annotations throughout, but currently we do not check that these annotations are correct. Using mypy, we can check these type annotations statically. This is a good candidate for our CI checks, along with our other linters.

We have some minor typechecking errors in the codebase, especially relating to covariance, which should be fixed along with this.

It looks like we only typecheck our examples:

MYPYPATH=src $(PYTHON) -m mypy --strict examples