-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsettings.json
More file actions
37 lines (33 loc) · 1022 Bytes
/
settings.json
File metadata and controls
37 lines (33 loc) · 1022 Bytes
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
{
// File cleanup
"files.trimTrailingWhitespace": true,
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true,
// Python
"python.analysis.autoFormatStrings": true,
"python.testing.pytestEnabled": true,
"python.analysis.autoImportCompletions": true,
"python.analysis.gotoDefinitionInStringLiteral": true,
// Allow auto-importing from deeper symbols inside of Django.
"python.analysis.packageIndexDepths": [
{
"name": "django",
"depth": 6
}
],
"python.analysis.inlayHints.pytestParameters": true,
// Django templates
"emmet.includeLanguages": {
"django-html": "html"
},
// Type checking: Use Mypy and disable Pylance.
"mypy-type-checker.importStrategy": "fromEnvironment",
// Mypy daemon seems better, but is buggy in practice.
"mypy-type-checker.preferDaemon": false,
"mypy-type-checker.reportingScope": "file",
"python.analysis.typeCheckingMode": "off",
// Ruff
"[python]": {
"editor.defaultFormatter": "charliermarsh.ruff"
}
}