11// 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
33{
4- "name" : " Python 3 " ,
4+ "name" : " conjecture " ,
55 "build" : {
66 "dockerfile" : " Dockerfile" ,
77 "context" : " .." ,
88 "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" ,
1113 // Options
12- "INSTALL_NODE" : " false" ,
13- "NODE_VERSION" : " lts/*"
14+ "NODE_VERSION" : " none"
1415 }
1516 },
1617 // Set *default* container specific settings.json values on container create.
1718 "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" ,
3419 "editor.codeActionsOnSave" : {
3520 "source.organizeImports" : true
3621 },
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/" ,
3738 },
3839 // Add the IDs of extensions you want installed when the container is created.
3940 "extensions" : [
4041 " ms-python.python" ,
4142 " ms-python.vscode-pylance" ,
43+ " bungcip.better-toml" ,
4244 ],
4345 // Use 'forwardPorts' to make a list of ports inside the container available locally.
4446 // "forwardPorts": [],
4547 // 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+ }
4956}
0 commit comments