-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsettings.json
More file actions
57 lines (52 loc) · 2.24 KB
/
Copy pathsettings.json
File metadata and controls
57 lines (52 loc) · 2.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{
"python.linting.ruffEnabled": true,
"python.linting.enabled": true,
// Enable Pylance
"python.languageServer": "Pylance",
// Enable type checking mode and set it to strict
"python.analysis.typeCheckingMode": "strict",
// Configure specific diagnostic settings
"python.analysis.diagnosticSeverityOverrides": {
// My desired configuration is for Pylance to treat unknown symbols
// as an error only when it can be determined they are not imported
// anywhere, even through wildcard imports.
//
// But alas, Pyright cannot track definitions with wildcard imports.
//
// Also, I don't know how to configure Pylance to report unknown
// symbols as errors ONLY when all imports are known.
//
// so atm one must choose:
// 1. treat wildcard imports AND unknown symbols as an error
// 2 treat neither as an error.
// "reportWildcardImportFromLibrary": "none", // Ignore wildcard imports
"reportUnknownParameterType": "none", // Ignore unknown parameter types
"reportUnknownVariableType": "none", // Ignore unknown variable types
"reportUnknownMemberType": "none", // Ignore unknown member types
"reportUnknownArgumentType": "none", // Ignore unknown argument types
"reportUnknownLambdaType": "none", // Ignore unknown lambda types
"reportUnknownType": "none", // Ignore unknown types
//
// TRULY HARMLESS
//
// unused symbols
"reportUnusedImport": "none",
"reportUnusedVariable": "none",
"reportUnusedFunction": "none",
// issing type annotations
"reportMissingTypeStubs": "none", // Ignore missing type stubs
"reportMissingImports": "none", // Ignore missing imports
"reportMissingParameterType": "none",
"reportMissingTypeArgument": "none", // Ignore missing type arguments
"reportUntypedFunctionDecorator": "none",
},
// Exclude specific files or directories from Pylance analysis
"python.analysis.exclude": [
"examples/**",
],
"python.testing.pytestArgs": [
"tests"
],
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true,
}