diff --git a/azure-pipelines-ci.yml b/azure-pipelines-ci.yml index 5f3230002d2..93d2c7805d8 100644 --- a/azure-pipelines-ci.yml +++ b/azure-pipelines-ci.yml @@ -160,3 +160,19 @@ stages: . venv/bin/activate pylint homeassistant displayName: 'Run pylint' + - job: 'Mypy' + pool: + vmImage: 'ubuntu-latest' + container: $[ variables['PythonMain'] ] + steps: + - script: | + python -m venv venv + + . venv/bin/activate + pip install -r requirements_test.txt + displayName: 'Setup Env' + - script: | + . venv/bin/activate + TYPING_FILES=$(cat mypyrc) + mypy $TYPING_FILES + displayName: 'Run mypy'