Skip to content

Commit 4be428f

Browse files
authored
Set Pyright level as basic by default for VS Code (home-assistant#154495)
1 parent ea22680 commit 4be428f

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

.devcontainer/devcontainer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
"python.terminal.activateEnvInCurrentTerminal": true,
4242
"python.testing.pytestArgs": ["--no-cov"],
4343
"pylint.importStrategy": "fromEnvironment",
44+
"python.analysis.typeCheckingMode": "basic",
4445
"editor.formatOnPaste": false,
4546
"editor.formatOnSave": true,
4647
"editor.formatOnType": true,

.vscode/settings.default.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
"python.testing.pytestEnabled": false,
88
// https://code.visualstudio.com/docs/python/linting#_general-settings
99
"pylint.importStrategy": "fromEnvironment",
10+
// Pyright is too pedantic for Home Assistant
11+
"python.analysis.typeCheckingMode": "basic",
1012
"json.schemas": [
1113
{
1214
"fileMatch": [

0 commit comments

Comments
 (0)