-
Notifications
You must be signed in to change notification settings - Fork 4
/
devcontainer.json
98 lines (87 loc) · 2.93 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
{
"name": "example_project",
"containerEnv": {
"TZ": "Europe/Berlin",
"LOCAL_WORKSPACE_FOLDER": "${localWorkspaceFolder}",
"CONTAINER_WORKSPACE_FOLDER": "${containerWorkspaceFolder}",
},
"runArgs": [
"--hostname", "devcontainer",
// // Warning: loading .env into the environment will undermine the ability
// // to use .env to dynamically adjust the unspecified values.
// "--env-file", ".env"
],
"build": {
"dockerfile": "dev.Dockerfile",
"context": "../",
"args": {
"CONTAINER_WORKSPACE_FOLDER": "${containerWorkspaceFolder}",
}
},
"overrideCommand": false, // allow the entrypoint to run
"mounts": [
"source=pre-commit-cache-${localEnv:USER},target=/home/mambauser/.cache/pre-commit,type=volume",
"source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind,consistency=cached",
],
"remoteUser": "mambauser",
"customizations": {
"vscode": {
"extensions": [
"ms-python.python",
"ms-python.vscode-pylance",
"charliermarsh.ruff",
"ms-toolsai.jupyter",
"ms-azuretools.vscode-docker",
"ms-vsliveshare.vsliveshare",
"donjayamanne.githistory",
"eamodio.gitlens",
"mutantdino.resourcemonitor",
"github.copilot",
"davidanson.vscode-markdownlint",
"exiasr.hadolint",
"jnoortheen.xonsh",
],
"settings": {
// Files to completely exclude from view
// (see also search.exclude and files.watcherExclude)
"files.exclude": {
// Ignore cached files
"**/__pycache__": true,
// Ignore files created for development installs
"**/*.egg-info": true,
// Ignore Jupyter checkpoint files
"**/.ipynb_checkpoints": true,
// Ignore cache directory, except for files which start with . (e.g. .gitignore)
".devcontainer/cache/*/[!\\.]*": true,
},
"[python]": {
"editor.defaultFormatter": "charliermarsh.ruff",
},
"ruff.path": ["/opt/conda/bin/ruff"],
"ruff.interpreter": ["/opt/conda/bin/python"],
// Ruler for "black"-formatted line widths
"editor.rulers": [88],
// Disable barely usable scrollbar
"workbench.editor.wrapTabs": true,
// Turn on autosave
"files.autoSave": "afterDelay",
// Show whitespace as tiny grey dots
"editor.renderWhitespace": "boundary",
// Use Pylance
"python.languageServer": "Pylance",
"python.analysis.typeCheckingMode": "basic",
// Interpret lines beginning with "# !%" as ipython magic commands
"jupyter.interactiveWindow.textEditor.magicCommandsAsComments": true,
// Path of the default Python environment
"python.defaultInterpreterPath": "/opt/conda/bin/python",
// Disable the "conda activate base" command when opening a new terminal
"python.terminal.activateEnvironment": false,
// Automatically keep Git up-to-date with remotes
"git.autofetch": "all",
// Make sure that key combos like Ctrl+K are not intercepted by VS Code
// when using the terminal
"terminal.integrated.allowChords": false,
},
}
},
}