5
5
"build" : {
6
6
"dockerfile" : " Dockerfile" ,
7
7
"context" : " .." ,
8
- "args" : {
8
+ "args" : {
9
9
// Update 'VARIANT' to pick a Python version: 3, 3.6, 3.7, 3.8, 3.9
10
10
"VARIANT" : " 3.9" ,
11
11
// Options
12
12
"INSTALL_NODE" : " false" ,
13
13
"NODE_VERSION" : " lts/*"
14
14
}
15
15
},
16
-
17
16
// Set *default* container specific settings.json values on container create.
18
- "settings" : {
17
+ "settings" : {
19
18
"terminal.integrated.shell.linux" : " /bin/bash" ,
20
- "python.pythonPath" : " /usr/local/bin/python" ,
19
+ "editor.formatOnSave" : true ,
20
+ "python.pythonPath" : " .venv/bin/python" ,
21
21
"python.linting.enabled" : true ,
22
+ "python.linting.lintOnSave" : true ,
23
+ "python.linting.mypyEnabled" : true ,
22
24
"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
+ },
32
37
},
33
-
34
38
// Add the IDs of extensions you want installed when the container is created.
35
39
"extensions" : [
36
- " ms-python.python"
40
+ " ms-python.python" ,
41
+ " ms-python.vscode-pylance" ,
37
42
],
38
-
39
43
// Use 'forwardPorts' to make a list of ports inside the container available locally.
40
44
// "forwardPorts": [],
41
-
42
45
// Use 'postCreateCommand' to run commands after the container is created.
43
46
// "postCreateCommand": "pip3 install --user -r requirements.txt",
44
-
45
47
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
46
48
"remoteUser" : " vscode"
47
- }
49
+ }
0 commit comments