1
0
mirror of https://github.com/home-assistant/core.git synced 2026-06-02 21:54:27 +01:00

Azure mypy related tweaks (#25663)

* Revert "Add some debugging to azure mypy job (#25632)"

This reverts commit 767b8e9f25.

No longer needed.

* Install setup.py dependencies for mypy in Azure

For better coverage, and to match what tox does.
This commit is contained in:
Ville Skyttä
2019-08-02 17:59:47 +03:00
committed by Pascal Vizeli
parent 0c561aec4f
commit a2f9a5287d
2 changed files with 3 additions and 5 deletions
+1 -4
View File
@@ -201,19 +201,16 @@ stages:
container: $[ variables['PythonMain'] ]
steps:
- script: |
set -x
python -m venv venv
. venv/bin/activate
pip install -e .
pip install -r requirements_test.txt -c homeassistant/package_constraints.txt
displayName: 'Setup Env'
- script: |
set -x
TYPING_FILES=$(cat mypyrc)
echo -e "Run mypy on: \n$TYPING_FILES"
. venv/bin/activate
python --version
mypy --version
mypy $TYPING_FILES
displayName: 'Run mypy'
+2 -1
View File
@@ -88,7 +88,8 @@ def load_yaml(fname: str, round_trip: bool = False) -> JSON_TYPE:
"""Load a YAML file."""
if round_trip:
yaml = YAML(typ="rt")
yaml.preserve_quotes = True
# type ignore: https://bitbucket.org/ruamel/yaml/pull-requests/42
yaml.preserve_quotes = True # type: ignore
else:
if ExtSafeConstructor.name is None:
ExtSafeConstructor.name = fname