-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathdevcontainer.json
35 lines (35 loc) · 1.04 KB
/
devcontainer.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{
"name": "TrestleBot Dev Environment ",
"build": {
"dockerfile": "Dockerfile",
"context": ".."
},
"customizations": {
"vscode": {
"settings": {
"python.linting.enabled": true,
"python.defaultInterpreterPath": "/home/trestlebot/trestle-bot/.venv/bin/python3"
},
"extensions": [
"ms-python.python",
"ms-python.mypy-type-checker",
"ms-python.flake8",
"ms-python.isort",
"ms-azuretools.vscode-docker"
]
}
},
"updateRemoteUserUID": true,
"containerUser": "trestlebot",
"containerEnv": {
"HOME": "/home/trestlebot",
"PIP_NO_CACHE_DIR": "off",
"PIP_DISABLE_PIP_VERSION_CHECK": "on",
"PIP_DEFAULT_TIMEOUT": "100",
"POETRY_VIRTUALENVS_IN_PROJECT": "true"
},
"updateContentCommand": "python3 -m venv $VENV_PATH && source $VENV_PATH/bin/activate && poetry install --no-root --no-interaction",
"postCreateCommand": "echo \"source $VENV_PATH/bin/activate\" >> $HOME/.bashrc && make pre-commit",
"workspaceMount": "source=${localWorkspaceFolder},target=/workspace,type=bind",
"workspaceFolder": "/workspace"
}