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.187.0/containers/python-3
3
1
{
4
- "name" : " Python 3 " ,
2
+ "name" : " ai_data_preprocessing_queue " ,
5
3
"build" : {
6
4
"dockerfile" : " Dockerfile" ,
7
- "context" : " .." ,
8
- "args" : {
9
- // Update 'VARIANT' to pick a Python version: 3, 3.6, 3.7, 3.8, 3.9
10
- "VARIANT" : " 3.8" ,
11
- // Options
12
- "INSTALL_NODE" : " true" ,
13
- "NODE_VERSION" : " lts/*"
14
- }
5
+ "context" : " .."
15
6
},
16
-
17
- // Set *default* container specific settings.json values on container create.
18
- "settings" : {
19
- "python.pythonPath" : " /usr/local/bin/python" ,
20
- "python.languageServer" : " Pylance" ,
21
- "python.linting.enabled" : true ,
22
- "python.linting.pylintEnabled" : false ,
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"
7
+ "customizations" : {
8
+ "vscode" : {
9
+ "settings" : {
10
+ "python.pythonPath" : " /usr/local/bin/python" ,
11
+ "python.defaultInterpreterPath" : " /usr/local/bin/python" ,
12
+ "python.languageServer" : " Pylance" ,
13
+ "python.formatting.autopep8Path" : " /usr/local/py-utils/bin/autopep8" ,
14
+ "python.formatting.blackPath" : " /usr/local/py-utils/bin/black" ,
15
+ "python.formatting.yapfPath" : " /usr/local/py-utils/bin/yapf" ,
16
+ "python.linting.banditPath" : " /usr/local/py-utils/bin/bandit" ,
17
+ "python.linting.flake8Path" : " /home/vscode/.local/bin/flake8" ,
18
+ "flake8.importStrategy" : " fromEnvironment" ,
19
+ "python.linting.mypyPath" : " /home/vscode/.local/bin/mypy" ,
20
+ "python.linting.pycodestylePath" : " /usr/local/py-utils/bin/pycodestyle" ,
21
+ "python.linting.pydocstylePath" : " /usr/local/py-utils/bin/pydocstyle" ,
22
+ "python.linting.pylintPath" : " /usr/local/py-utils/bin/pylint"
23
+ },
24
+ "extensions" : [
25
+ " ms-python.python" ,
26
+ " ms-python.vscode-pylance" ,
27
+ " ms-python.flake8" ,
28
+ " matangover.mypy" ,
29
+ " ms-python.isort" ,
30
+ " usernamehw.errorlens" ,
31
+ " sourcery.sourcery" ,
32
+ " njqdev.vscode-python-typehint" ,
33
+ " njpwerner.autodocstring" ,
34
+ " redhat.vscode-yaml" ,
35
+ " visualstudioexptteam.vscodeintellicode" ,
36
+ " kaih2o.python-resource-monitor" ,
37
+ " geeebe.duplicate" ,
38
+ " oderwat.indent-rainbow" ,
39
+ " shardulm94.trailing-spaces" ,
40
+ " streetsidesoftware.code-spell-checker" ,
41
+ " ryanluker.vscode-coverage-gutters" ,
42
+ " spmeesseman.vscode-taskexplorer" ,
43
+ " eamodio.gitlens" ,
44
+ " tamasfe.even-better-toml" ,
45
+ " AykutSarac.jsoncrack-vscode" ,
46
+ " yzhang.markdown-all-in-one" ,
47
+ " Gruntfuggly.todo-tree"
48
+ ]
49
+ }
32
50
},
33
-
34
- // Add the IDs of extensions you want installed when the container is created.
35
- "extensions" : [
36
- " ms-python.python" ,
37
- " ms-python.vscode-pylance" ,
38
- " forbeslindesay.forbeslindesay-taskrunner"
39
- ],
40
-
41
- // Use 'forwardPorts' to make a list of ports inside the container available locally.
42
- // "forwardPorts": [],
43
-
44
- // Use 'postCreateCommand' to run commands after the container is created.
45
- "postCreateCommand" : " pip3 install -r ./requirements.txt" ,
46
-
47
- // Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
48
- "remoteUser" : " vscode"
49
- }
51
+ "initializeCommand" : " powershell.exe .\\ .devcontainer\\ initialize.ps1" ,
52
+ "postCreateCommand" : " pip3 install -r ${containerWorkspaceFolder}/requirements-dev.txt" ,
53
+ "remoteUser" : " vscode" ,
54
+ "mounts" : [
55
+ " source=${localEnv:USERPROFILE}/_devcontainer/cache,target=/home/vscode/.cache,type=bind"
56
+ ]
57
+ }
0 commit comments