Skip to content

Commit 5636371

Browse files
authored
Merge pull request #92 from jenskeiner/feature/devcontainer
Update devcontainer specification.
2 parents 1f8b18f + 1b03029 commit 5636371

File tree

2 files changed

+28
-81
lines changed

2 files changed

+28
-81
lines changed

.devcontainer/Dockerfile

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

.devcontainer/devcontainer.json

Lines changed: 28 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,30 @@
11
{
2-
"name": "python3",
3-
"build": {
4-
"dockerfile": "Dockerfile"
5-
},
6-
7-
// Set *default* container specific settings.json values on container create.
8-
"settings": {
9-
"terminal.integrated.shell.linux": "/bin/bash",
10-
"python.testing.pytestArgs": [
11-
"tests"
12-
],
13-
"python.testing.unittestEnabled": false,
14-
"python.testing.pytestEnabled": true
15-
},
16-
17-
// 👇 Features to add to the Dev Container. More info: https://containers.dev/implementors/features.
18-
// "features": {},
19-
20-
// 👇 Use 'forwardPorts' to make a list of ports inside the container available locally.
21-
// "forwardPorts": [],
22-
23-
// 👇 Use 'postCreateCommand' to run commands after the container is created.
24-
"postCreateCommand": "poetry install",
25-
26-
// 👇 Configure tool-specific properties.
27-
"customizations": {
28-
"vscode": {
29-
"extensions":[
30-
"donjayamanne.python-extension-pack"
31-
]
32-
}
33-
}
34-
35-
36-
37-
// 👇 Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
38-
// "remoteUser": "root"
2+
"name": "exchange-calendars-extensions",
3+
"image": "mcr.microsoft.com/devcontainers/python:dev-3.14",
4+
"containerEnv": {
5+
"UV_LINK_MODE": "copy"
6+
},
7+
"features": {
8+
"ghcr.io/jsburckhardt/devcontainer-features/uv:1": {},
9+
"ghcr.io/jsburckhardt/devcontainer-features/ruff:1": {},
10+
"ghcr.io/prulloac/devcontainer-features/pre-commit:1": {}
11+
},
12+
"customizations": {
13+
"vscode": {
14+
"extensions": [
15+
"ms-python.python",
16+
"ms-python.vscode-pylance",
17+
"ms-python.debugpy"
18+
],
19+
"settings": {
20+
"python.testing.pytestArgs": [
21+
"tests"
22+
],
23+
"python.testing.unittestEnabled": false,
24+
"python.testing.pytestEnabled": true
25+
}
26+
}
27+
},
28+
"postCreateCommand": "uv sync",
29+
"remoteUser": "vscode"
3930
}

0 commit comments

Comments
 (0)