Skip to content

Commit b476247

Browse files
committed
config: enable and configure Pyright for type-checking
1 parent a406e76 commit b476247

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

backend/.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
"files.trimFinalNewlines": true,
55
"python.analysis.autoImportCompletions": true,
66
"python.analysis.typeCheckingMode": "basic",
7+
"python.analysis.diagnosticSeverityOverrides": {
8+
"reportPrivateImportUsage": "none"
9+
},
710
"[python]": {
811
"editor.formatOnSave": true,
912
"editor.codeActionsOnSave": {

pyrightconfig.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"include": [
3+
"backend/src"
4+
],
5+
"exclude": [
6+
"**/venv",
7+
"**/__pycache__"
8+
],
9+
"reportPrivateImportUsage": "none"
10+
}

0 commit comments

Comments
 (0)