diff --git a/azure-pipelines-ci.yml b/azure-pipelines-ci.yml index 35da6f1c89f..7e609f35084 100644 --- a/azure-pipelines-ci.yml +++ b/azure-pipelines-ci.yml @@ -32,7 +32,10 @@ jobs: container: $[ variables['PythonMain'] ] steps: - script: | - pip install --user flake8 + python -m venv lint + + . lint/bin/activate + pip install flake8 flake8 homeassistant tests script displayName: 'Run flake8'