-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.devcontainer-template.json
More file actions
63 lines (63 loc) · 2.55 KB
/
Copy path.devcontainer-template.json
File metadata and controls
63 lines (63 loc) · 2.55 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
58
59
60
61
62
63
/*
Copy this file to .devcontainer.json
if using PODMAN, instead of DOCKER, uncomment the runArgs section
*/
{
"name": "sHedC/python-masterthermlocal",
"image": "mcr.microsoft.com/devcontainers/python:3.13",
"postCreateCommand": "pip install --upgrade pip && pip install --user -r requirements.txt && python3 -m pip install -e .",
"customizations": {
"vscode": {
"settings": {
"files.eol": "\n",
"editor.tabSize": 4,
"editor.defaultFormatter": "ms-python.black-formatter",
"editor.formatOnPaste": true,
"editor.formatOnSave": true,
"editor.formatOnType": false,
"extensions.ignoreRecommendations": true,
"files.trimTrailingWhitespace": true,
"python.analysis.autoImportCompletions": true,
"python.analysis.include": ["masterthermconect"],
"python.analysis.exclude": ["**/node_moduels", "**/__pycache__"],
"python.analysis.useLibraryCodeForTypes": true,
"python.analysis.strict": ["masterthermconect"],
"python.analysis.typeCheckingMode": "strict",
"python.analysis.diagnosticSeverityOverrides": {
"reportMissingImports": "information",
"reportMissingTypeStubs": "information",
"reportUnknownMemberType": "information",
"reportUnknownArgumentType": "information",
"reportUnknownParameterType": "information",
"reportMissingParameterType": "information"
},
"python.defaultInterpreterPath": "/usr/local/bin/python",
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true,
"[python]": {
"editor.defaultFormatter": "charliermarsh.ruff",
"editor.codeActionsOnSave": {
"source.organizeImports": "explicit",
"source.fixAll": "explicit"
}
}
},
"extensions": [
"ms-python.python",
"ms-python.vscode-pylance",
"ms-python.black-formatter",
"charliermarsh.ruff",
"github.vscode-pull-request-github",
"mikestead.dotenv",
"ryanluker.vscode-coverage-gutters",
"tamasfe.even-better-toml"
]
}
},
"remoteUser": "vscode",
"containerUser": "vscode",
//"runArgs": [
// "--userns=keep-id"
//],
"workspaceMount": "source=${localWorkspaceFolder},target=/workspaces/${localWorkspaceFolderBasename},type=bind,Z"
}