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.202.5/containers/python-3
3+ {
4+ "name" : " Python 3" ,
5+ "runArgs" : [
6+ " --init"
7+ ],
8+ "build" : {
9+ "dockerfile" : " Dockerfile" ,
10+ "context" : " .." ,
11+ "args" : {
12+ // Update 'VARIANT' to pick a Python version: 3, 3.10, 3.9, 3.8, 3.7, 3.6
13+ // Append -bullseye or -buster to pin to an OS version.
14+ // Use -bullseye variants on local on arm64/Apple Silicon.
15+ "VARIANT" : " 3.10-bullseye" ,
16+ // Options
17+ "NODE_VERSION" : " none"
18+ }
19+ },
20+ // Set *default* container specific settings.json values on container create.
21+ "settings" : {
22+ "files.exclude" : {
23+ "**/.git" : true ,
24+ "**/.DS_Store" : true ,
25+ "**/__pycache__" : true ,
26+ ".mypy_cache" : true ,
27+ ".pytest_cache" : true ,
28+ ".coverage" : true ,
29+ },
30+ "files.autoSave" : " onFocusChange" ,
31+ "editor.codeActionsOnSave" : {
32+ "source.organizeImports" : true
33+ },
34+ "editor.formatOnSave" : true ,
35+ "python.pythonPath" : " /usr/local/bin/python" ,
36+ "python.languageServer" : " Pylance" ,
37+ "python.linting.enabled" : true ,
38+ "python.linting.pylintEnabled" : true ,
39+ "python.formatting.provider" : " black" ,
40+ "python.formatting.autopep8Path" : " /usr/local/py-utils/bin/autopep8" ,
41+ "python.formatting.blackPath" : " /usr/local/py-utils/bin/black" ,
42+ "python.formatting.yapfPath" : " /usr/local/py-utils/bin/yapf" ,
43+ "python.linting.banditPath" : " /usr/local/py-utils/bin/bandit" ,
44+ "python.linting.flake8Path" : " /usr/local/py-utils/bin/flake8" ,
45+ "python.linting.mypyPath" : " /usr/local/py-utils/bin/mypy" ,
46+ "python.linting.pycodestylePath" : " /usr/local/py-utils/bin/pycodestyle" ,
47+ "python.linting.pydocstylePath" : " /usr/local/py-utils/bin/pydocstyle" ,
48+ "python.linting.pylintPath" : " /usr/local/py-utils/bin/pylint" ,
49+ "python.venvFolders" : [
50+ " ~/.cache/pypoetry/virtualenvs/"
51+ ],
52+ "python.sortImports.args" : [
53+ " --profile" ,
54+ " black"
55+ ],
56+ },
57+ // Add the IDs of extensions you want installed when the container is created.
58+ "extensions" : [
59+ " ms-python.python" ,
60+ " ms-python.vscode-pylance" ,
61+ " bungcip.better-toml"
62+ ],
63+ // Use 'forwardPorts' to make a list of ports inside the container available locally.
64+ // "forwardPorts": [],
65+ // Use 'postCreateCommand' to run commands after the container is created.
66+ "postCreateCommand" : " make setup" ,
67+ // Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
68+ "remoteUser" : " vscode" ,
69+ "features" : {
70+ "git" : " os-provided" ,
71+ "github-cli" : " latest" ,
72+ }
73+ }
0 commit comments