diff --git a/azure-pipelines-ci.yml b/azure-pipelines-ci.yml index eef4731c4ac..1e3d914aaf0 100644 --- a/azure-pipelines-ci.yml +++ b/azure-pipelines-ci.yml @@ -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' diff --git a/homeassistant/util/ruamel_yaml.py b/homeassistant/util/ruamel_yaml.py index 04a98a84f03..931ad7adb91 100644 --- a/homeassistant/util/ruamel_yaml.py +++ b/homeassistant/util/ruamel_yaml.py @@ -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