mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Azure mypy related tweaks (#25663)
* Revert "Add some debugging to azure mypy job (#25632)" This reverts commit 767b8e9f25affbebb98d65f57c0d78b532a951ba. 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:
parent
0c561aec4f
commit
a2f9a5287d
@ -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'
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user