Skip to content

Commit af938b3

Browse files
committed
fix: correct release environment in devcontainer
1 parent aa16850 commit af938b3

4 files changed

Lines changed: 12 additions & 6 deletions

File tree

.devcontainer/Dockerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ RUN \
77
&& pipx uninstall flake8 \
88
&& pipx uninstall black \
99
&& pipx install commitizen \
10-
&& pip install -U hatch hatch-containers
11-
12-
RUN su vscode -c "hatch config set dirs.env.virtual /home/vscode/.virtualenvs"
10+
&& pipx install hatch
1311

1412
ENV SHELL /bin/bash

.devcontainer/devcontainer-lock.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
"version": "0.0.5",
55
"resolved": "ghcr.io/devcontainers-extra/features/zsh-plugins@sha256:4dcc8e97307345cff26c2b4dfd840c2947b8b5bb20f492a68bdb9fbe9ccb67ba",
66
"integrity": "sha256:4dcc8e97307345cff26c2b4dfd840c2947b8b5bb20f492a68bdb9fbe9ccb67ba"
7+
},
8+
"ghcr.io/devcontainers/features/github-cli:1": {
9+
"version": "1.1.0",
10+
"resolved": "ghcr.io/devcontainers/features/github-cli@sha256:d22f50b70ed75339b4eed1ba9ecde3a1791f90e88d37936517e3bace0bbad671",
11+
"integrity": "sha256:d22f50b70ed75339b4eed1ba9ecde3a1791f90e88d37936517e3bace0bbad671"
712
}
813
}
914
}

.devcontainer/devcontainer.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,14 @@
55
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
66
"dockerFile": "./Dockerfile",
77
"context": "..",
8+
"mounts": [
9+
"source=${localEnv:HOME}/.config/gh,target=/home/vscode/.config/gh,type=bind,consistency=cached"
10+
],
811
"features": {
912
"ghcr.io/devcontainers-extra/features/zsh-plugins": {
1013
"omzPlugins": "https://github.com/zsh-users/zsh-autosuggestions"
11-
}
14+
},
15+
"ghcr.io/devcontainers/features/github-cli:1": {}
1216
},
1317

1418
// Features to add to the dev container. More info: https://containers.dev/features.
@@ -41,7 +45,6 @@
4145
"sunipkm.autodocstringpy"
4246
],
4347
"settings": {
44-
"python.defaultInterpreterPath": "~/.virtualenvs/py-irclib/bin/python",
4548
"python.testing.pytestArgs": ["--no-cov"],
4649
"terminal.integrated.profiles.linux": {
4750
"zsh": {

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@
1414
"python.analysis.diagnosticMode": "workspace",
1515
"autoDocstringPy.docstringFormat": "google-notypes",
1616
"autoDocstringPy.startOnNewLine": true,
17-
"python-envs.defaultEnvManager": "ms-python.python:system",
17+
"python-envs.defaultEnvManager": "ms-python.python:venv",
1818
"python-envs.pythonProjects": []
1919
}

0 commit comments

Comments
 (0)