1
1
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
2
- // https://github.com/microsoft/vscode-dev-containers/tree/v0.166.1 /containers/python-3
2
+ // https://github.com/microsoft/vscode-dev-containers/tree/v0.224.3 /containers/python-3
3
3
{
4
- "name" : " Python 3 " ,
4
+ "name" : " conjecture " ,
5
5
"build" : {
6
6
"dockerfile" : " Dockerfile" ,
7
7
"context" : " .." ,
8
8
"args" : {
9
- // Update 'VARIANT' to pick a Python version: 3, 3.6, 3.7, 3.8, 3.9
10
- "VARIANT" : " 3.9" ,
9
+ // Update 'VARIANT' to pick a Python version: 3, 3.10, 3.9, 3.8, 3.7, 3.6
10
+ // Append -bullseye or -buster to pin to an OS version.
11
+ // Use -bullseye variants on local on arm64/Apple Silicon.
12
+ "VARIANT" : " 3.10-bullseye" ,
11
13
// Options
12
- "INSTALL_NODE" : " false" ,
13
- "NODE_VERSION" : " lts/*"
14
+ "NODE_VERSION" : " none"
14
15
}
15
16
},
16
17
// Set *default* container specific settings.json values on container create.
17
18
"settings" : {
18
- "terminal.integrated.shell.linux" : " /bin/bash" ,
19
- "editor.formatOnSave" : true ,
20
- "python.pythonPath" : " .venv/bin/python" ,
21
- "python.linting.enabled" : true ,
22
- "python.linting.lintOnSave" : true ,
23
- "python.linting.mypyEnabled" : true ,
24
- "python.linting.pylintEnabled" : true ,
25
- "python.linting.pydocstyleEnabled" : true ,
26
- "python.linting.mypyPath" : " .venv/bin/mypy" ,
27
- "python.linting.pydocstylePath" : " .venv/bin/pydocstyle" ,
28
- "python.linting.pylintPath" : " .venv/bin/pylint" ,
29
- "python.testing.pytestEnabled" : true ,
30
- "python.testing.pytestArgs" : [
31
- " tests"
32
- ],
33
- "python.formatting.blackPath" : " .venv/bin/black" ,
34
19
"editor.codeActionsOnSave" : {
35
20
"source.organizeImports" : true
36
21
},
22
+ "files.exclude" : {
23
+ ".pnp.*" : true ,
24
+ ".yarn" : true ,
25
+ "**/__pycache__" : true ,
26
+ "**/.mypy_cache" : true ,
27
+ "**/.pytest_cache" : true ,
28
+ "**/.coverage" : true ,
29
+ },
30
+ "python.defaultInterpreterPath" : " /usr/local/bin/python" ,
31
+ "python.linting.enabled" : true ,
32
+ "python.linting.pylintEnabled" : true ,
33
+ "python.formatting.blackPath" : " black" ,
34
+ "python.linting.mypyPath" : " mypy" ,
35
+ "python.linting.pylintPath" : " pylint" ,
36
+ "python.testing.pytestPath" : " pytest" ,
37
+ "python.venvPath" : " /home/vscode/.cache/pypoetry/virtualenvs/" ,
37
38
},
38
39
// Add the IDs of extensions you want installed when the container is created.
39
40
"extensions" : [
40
41
" ms-python.python" ,
41
42
" ms-python.vscode-pylance" ,
43
+ " bungcip.better-toml" ,
42
44
],
43
45
// Use 'forwardPorts' to make a list of ports inside the container available locally.
44
46
// "forwardPorts": [],
45
47
// Use 'postCreateCommand' to run commands after the container is created.
46
- // "postCreateCommand": "pip3 install --user -r requirements.txt",
47
- // Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
48
- "remoteUser" : " vscode"
48
+ "postCreateCommand" : " make setup" ,
49
+ // Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
50
+ "remoteUser" : " vscode" ,
51
+ "features" : {
52
+ "git" : " latest" ,
53
+ "github-cli" : " latest" ,
54
+ "fish" : " latest" ,
55
+ }
49
56
}
0 commit comments