Skip to content

Commit 3a397dc

Browse files
committed
Confiure pyrigth to alert unbould variables, confiure vscode also
1 parent d8a81d8 commit 3a397dc

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
"tests"
55
],
66
"python.testing.unittestEnabled": false,
7-
"python.testing.pytestEnabled": true
7+
"python.testing.pytestEnabled": true,
8+
"python.analysis.typeEvaluation.enableReachabilityAnalysis": true
89
}

pyrightconfig.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"reportUnboundVariable": "error",
3+
"reportPossiblyUnboundVariable": "error",
4+
"reportUnusedVariable": "warning",
5+
"reportUnusedParameter": "warning",
6+
"strictListInference": true,
7+
"strictDictionaryInference": true,
8+
"strictSetInference": true,
9+
"strictParameterNoneValue": true,
10+
"enableTypeIgnoreComments": true,
11+
"reportImportCycles": true,
12+
"reportUnusedImport": true
13+
}

0 commit comments

Comments
 (0)