Add support for setting up mypy and mypyc
We currently need this logic for at least two repositories, and the number might grow with time. Let's deduplicate the code here.
We currently need this logic for at least two repositories, and the number might grow with time. Let's deduplicate the code here.