Skip to content

Commit e80a4ad

Browse files
committed
#235 Update devcontainer
1 parent 5506e35 commit e80a4ad

1 file changed

Lines changed: 9 additions & 13 deletions

File tree

.devcontainer/devcontainer.json

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,25 @@
11
{
22
"name": "xarray-dataclasses",
3-
"image":"python:3.13",
4-
"onCreateCommand": "pip install poetry==1.8.5",
5-
"postCreateCommand": "poetry install",
3+
"image": "ghcr.io/astral-sh/uv:python3.12-bookworm",
4+
"runArgs": [
5+
"--name=xarray-dataclasses"
6+
],
67
"containerEnv": {
7-
"POETRY_VIRTUALENVS_CREATE": "false"
8+
"UV_PROJECT_ENVIRONMENT": "/usr/local"
89
},
10+
"postCreateCommand": "uv sync --frozen",
911
"customizations": {
1012
"vscode": {
1113
"extensions": [
12-
"github.vscode-pull-request-github",
13-
"mhutchie.git-graph",
14-
"ms-python.python",
14+
"ms-python.black-formatter",
1515
"streetsidesoftware.code-spell-checker",
1616
"tamasfe.even-better-toml"
1717
],
1818
"settings": {
19-
"files.insertFinalNewline": true,
20-
"files.trimTrailingWhitespace": true,
21-
"python.formatting.provider": "black",
2219
"python.languageServer": "Pylance",
2320
"[python]": {
24-
"editor.formatOnSave": true,
25-
"editor.insertSpaces": true,
26-
"editor.tabSize": 4
21+
"editor.defaultFormatter": "ms-python.black-formatter",
22+
"editor.formatOnSave": true
2723
}
2824
}
2925
}

0 commit comments

Comments
 (0)