Skip to content

Commit

Permalink
Merge pull request #6 from yasuhito/feature/enhance-devcontainer
Browse files Browse the repository at this point in the history
chore: enhance dev env for improved UV usage
  • Loading branch information
snuffkin authored Dec 4, 2024
2 parents a1ddc52 + 7c57adc commit 7a0a4fd
Showing 1 changed file with 20 additions and 12 deletions.
32 changes: 20 additions & 12 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,37 @@
"name": "uv",
"build": {
"context": "..",
"dockerfile": "Dockerfile"
"dockerfile": "Dockerfile",
"args": {
"UV_VERSION": "0.5.5",
"DEBIAN_VERSION": "bookworm"
}
},
"features": {
"ghcr.io/dhoeric/features/hadolint:1": {}
},
"customizations": {
"vscode": {
"extensions": [
"charliermarsh.ruff",
"exiasr.hadolint",
"kevinrose.vsc-python-indent",
"ms-azuretools.vscode-docker",
"ms-python.python",
"njpwerner.autodocstring",
"redhat.vscode-yaml",
"ms-toolsai.jupyter"
],
"settings": {
"terminal.integrated.defaultProfile.linux": "zsh",
"terminal.integrated.profiles.linux": {
"zsh": {
"path": "/bin/zsh"
}
}
}
"shardulm94.trailing-spaces",
"tamasfe.even-better-toml"
]
}
},
"postCreateCommand": "uv sync --dev",
"containerEnv": {
"DISPLAY": "dummy",
"PYTHONUNBUFFERED": "True",
"UV_LINK_MODE": "copy",
"UV_PROJECT_ENVIRONMENT": "/home/vscode/.venv",
"VIRTUAL_ENV": "/home/vscode/.venv"
},
"postCreateCommand": "uv sync --frozen",
"remoteUser": "vscode"
}

0 comments on commit 7a0a4fd

Please sign in to comment.