Run mypy in pre-commit (#27339)

* Move mypy files config to setup.cfg

* Add mypy in pre-commit
This commit is contained in:
Ville Skyttä
2019-10-08 14:45:24 -07:00
committed by Paulus Schoutsen
parent d345b58ce6
commit 3e6b9a17cc
5 changed files with 15 additions and 49 deletions
+1 -4
View File
@@ -166,9 +166,6 @@ stages:
pip install -r requirements_test.txt -c homeassistant/package_constraints.txt
displayName: 'Setup Env'
- script: |
TYPING_FILES=$(cat mypyrc)
echo -e "Run mypy on: \n$TYPING_FILES"
. venv/bin/activate
mypy $TYPING_FILES
mypy homeassistant
displayName: 'Run mypy'