From 52bc006a72b30362aaa1bb5d175e262797703e58 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Wed, 19 Jun 2024 11:27:01 +0200 Subject: [PATCH] Update default pylint.importStrategy in dev container (#119900) --- .devcontainer/devcontainer.json | 1 + .vscode/settings.default.json | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 77249f53642..2b15a65ff1d 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -32,6 +32,7 @@ "python.pythonPath": "/home/vscode/.local/ha-venv/bin/python", "python.terminal.activateEnvInCurrentTerminal": true, "python.testing.pytestArgs": ["--no-cov"], + "pylint.importStrategy": "fromEnvironment", "editor.formatOnPaste": false, "editor.formatOnSave": true, "editor.formatOnType": true, diff --git a/.vscode/settings.default.json b/.vscode/settings.default.json index e0792a360f1..681698d08b3 100644 --- a/.vscode/settings.default.json +++ b/.vscode/settings.default.json @@ -4,5 +4,7 @@ // https://github.com/microsoft/vscode-python/issues/14067 "python.testing.pytestArgs": ["--no-cov"], // https://code.visualstudio.com/docs/python/testing#_pytest-configuration-settings - "python.testing.pytestEnabled": false + "python.testing.pytestEnabled": false, + // https://code.visualstudio.com/docs/python/linting#_general-settings + "pylint.importStrategy": "fromEnvironment" }