-
Notifications
You must be signed in to change notification settings - Fork 63
Expand file tree
/
Copy pathdevcontainer.json
More file actions
70 lines (70 loc) · 2.17 KB
/
Copy pathdevcontainer.json
File metadata and controls
70 lines (70 loc) · 2.17 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
64
65
66
67
68
69
70
/* CONTAINER for Python Development
* references:
* » https://containers.dev/implementors/json_reference
* » https://github.com/devcontainers/features/tree/main/src
* » https://code.visualstudio.com/docs/remote/containers
* » https://github.com/devcontainers/images/blob/main/src/python
*
* » F1 > Dev Containers: Rebuild Container
*/
{
"name": "Stock Indicators for Python",
"image": "mcr.microsoft.com/devcontainers/python:3.13",
"features": {
"ghcr.io/devcontainers/features/dotnet:2": {
"version": "10.0",
"additionalVersions": "9.0,8.0"
},
"ghcr.io/devcontainers/features/node:2": {
"version": "lts",
"pnpmVersion": "none",
"nvmVersion": "none"
},
"ghcr.io/devcontainers/features/github-cli:1": {},
"ghcr.io/devcontainers/features/ruby:1": {
"version": "3.3"
}
},
// Use 'settings' to set *default* container specific settings.json
// values on container create.
"customizations": {
"vscode": {
// container overrides only
// otherwise use .vscode/settings.json
"settings": {
"python.defaultInterpreterPath": "${containerWorkspaceFolder}/.venv/bin/python",
"python.testing.pytestEnabled": true,
"python.testing.unittestEnabled": false,
"[python]": {
"editor.defaultFormatter": "charliermarsh.ruff",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.organizeImports.ruff": "explicit",
"source.fixAll.ruff": "explicit"
}
},
// required extensions
// for recommended, see .vscode/extensions.json
"extensions": [
"charliermarsh.ruff",
"DavidAnson.vscode-markdownlint",
"EditorConfig.EditorConfig",
"ms-python.debugpy",
"ms-python.python",
"ms-python.vscode-pylance"
]
}
},
"forwardPorts": [
4000
],
"portsAttributes": {
"4000": {
"label": "Doc Site (Jekyll)",
"onAutoForward": "notify"
}
},
"remoteUser": "vscode",
"postCreateCommand": ".devcontainer/post-create.sh",
"postStartCommand": "echo 'Container started'"
}