55 "build" : {
66 "dockerfile" : " Dockerfile" ,
77 "context" : " .." ,
8- "args" : {
8+ "args" : {
99 // Update 'VARIANT' to pick a Python version: 3, 3.6, 3.7, 3.8, 3.9
1010 "VARIANT" : " 3.9" ,
1111 // Options
1212 "INSTALL_NODE" : " false" ,
1313 "NODE_VERSION" : " lts/*"
1414 }
1515 },
16-
1716 // Set *default* container specific settings.json values on container create.
18- "settings" : {
17+ "settings" : {
1918 "terminal.integrated.shell.linux" : " /bin/bash" ,
20- "python.pythonPath" : " /usr/local/bin/python" ,
19+ "editor.formatOnSave" : true ,
20+ "python.pythonPath" : " .venv/bin/python" ,
2121 "python.linting.enabled" : true ,
22+ "python.linting.lintOnSave" : true ,
23+ "python.linting.mypyEnabled" : true ,
2224 "python.linting.pylintEnabled" : true ,
23- "python.formatting.autopep8Path" : " /usr/local/py-utils/bin/autopep8" ,
24- "python.formatting.blackPath" : " /usr/local/py-utils/bin/black" ,
25- "python.formatting.yapfPath" : " /usr/local/py-utils/bin/yapf" ,
26- "python.linting.banditPath" : " /usr/local/py-utils/bin/bandit" ,
27- "python.linting.flake8Path" : " /usr/local/py-utils/bin/flake8" ,
28- "python.linting.mypyPath" : " /usr/local/py-utils/bin/mypy" ,
29- "python.linting.pycodestylePath" : " /usr/local/py-utils/bin/pycodestyle" ,
30- "python.linting.pydocstylePath" : " /usr/local/py-utils/bin/pydocstyle" ,
31- "python.linting.pylintPath" : " /usr/local/py-utils/bin/pylint"
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+ "editor.codeActionsOnSave" : {
35+ "source.organizeImports" : true
36+ },
3237 },
33-
3438 // Add the IDs of extensions you want installed when the container is created.
3539 "extensions" : [
36- " ms-python.python"
40+ " ms-python.python" ,
41+ " ms-python.vscode-pylance" ,
3742 ],
38-
3943 // Use 'forwardPorts' to make a list of ports inside the container available locally.
4044 // "forwardPorts": [],
41-
4245 // Use 'postCreateCommand' to run commands after the container is created.
4346 // "postCreateCommand": "pip3 install --user -r requirements.txt",
44-
4547 // Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
4648 "remoteUser" : " vscode"
47- }
49+ }
0 commit comments