Skip to content

Commit 8efc025

Browse files
committed
[vscode] devcontainer consistency
- workspace folders for both (nb: you need to rebuild without cache when changing the target value) - confirm ufmt is working on save (nb: oft need to exit and reopen the container when changing values) - confirm poetry venvs are found (poetry install + select and it will remember thereafter)
1 parent c937309 commit 8efc025

File tree

4 files changed

+49
-32
lines changed

4 files changed

+49
-32
lines changed

.devcontainer/devcontainer.json

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,24 @@
1111
},
1212
"context": ".."
1313
},
14-
"extensions": [
15-
"bierner.github-markdown-preview",
16-
"bungcip.better-toml",
17-
"lextudio.restructuredtext",
18-
"ms-python.python",
19-
"omnilib.ufmt"
20-
21-
],
2214
"containerEnv": {
2315
"POETRY_HTTP_BASIC_PYPI_USERNAME": "${localEnv:POETRY_HTTP_BASIC_PYPI_USERNAME}",
2416
"POETRY_HTTP_BASIC_PYPI_PASSWORD": "${localEnv:POETRY_HTTP_BASIC_PYPI_PASSWORD}"
2517
},
26-
"remoteUser": "zen"
27-
}
18+
"remoteUser": "zen",
19+
"customizations": {
20+
"vscode": {
21+
"extensions": [
22+
"bierner.github-markdown-preview",
23+
"bungcip.better-toml",
24+
"streetsidesoftware.code-spell-checker",
25+
"lextudio.restructuredtext",
26+
"ms-python.python",
27+
"omnilib.ufmt"
28+
]
29+
}
30+
},
31+
"postCreateCommand": "poetry install",
32+
"workspaceMount": "source=${localWorkspaceFolder},target=/workspaces,type=bind",
33+
"workspaceFolder": "/workspaces"
34+
}

.devcontainer/py310/.devcontainer/devcontainer.json

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,26 @@
88
"POETRY_VERSION": "1.3.2",
99
"PYTHON_VERSION": "3.10.9",
1010
"DEBIAN_VERSION": "bullseye"
11-
},
12-
"context": ".."
11+
}
1312
},
14-
"extensions": [
15-
"bierner.github-markdown-preview",
16-
"bungcip.better-toml",
17-
"lextudio.restructuredtext",
18-
"ms-python.python",
19-
"omnilib.ufmt"
20-
21-
],
2213
"containerEnv": {
2314
"POETRY_HTTP_BASIC_PYPI_USERNAME": "${localEnv:POETRY_HTTP_BASIC_PYPI_USERNAME}",
2415
"POETRY_HTTP_BASIC_PYPI_PASSWORD": "${localEnv:POETRY_HTTP_BASIC_PYPI_PASSWORD}"
2516
},
2617
"remoteUser": "zen",
27-
"workspaceMount": "source=${localWorkspaceFolder}/../..,target=/workspace,type=bind",
28-
"workspaceFolder": "/workspace"
18+
"customizations": {
19+
"vscode": {
20+
"extensions": [
21+
"bierner.github-markdown-preview",
22+
"bungcip.better-toml",
23+
"streetsidesoftware.code-spell-checker",
24+
"lextudio.restructuredtext",
25+
"ms-python.python",
26+
"omnilib.ufmt"
27+
]
28+
}
29+
},
30+
"postCreateCommand": "poetry install",
31+
"workspaceMount": "source=${localWorkspaceFolder}/../..,target=/workspaces,type=bind",
32+
"workspaceFolder": "/workspaces"
2933
}

.vscode/extensions.json

Lines changed: 0 additions & 7 deletions
This file was deleted.

.vscode/settings.json

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,20 @@
11
{
2-
"python.linting.flake8Enabled": false,
2+
"python.linting.enabled": false,
3+
"python.formatting.provider": "none",
34
"[python]": {
4-
"editor.defaultFormatter": "omnilib.ufmt"
5+
"editor.defaultFormatter": "omnilib.ufmt",
6+
"editor.formatOnSave": true
57
},
6-
"esbonio.sphinx.confDir": ""
8+
"cSpell.words": [
9+
"behaviour",
10+
"behaviours",
11+
"bierner",
12+
"bungcip",
13+
"omnilib",
14+
"py_trees",
15+
"pydot",
16+
"pypi",
17+
"ufmt",
18+
"usort"
19+
]
720
}

0 commit comments

Comments
 (0)