Skip to content

Commit 545f88e

Browse files
authored
🧑‍💻 update devcontainer config
1 parent b356eab commit 545f88e

File tree

2 files changed

+7
-67
lines changed

2 files changed

+7
-67
lines changed

.devcontainer/Dockerfile

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

.devcontainer/devcontainer.json

Lines changed: 7 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,13 @@
1-
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
2-
// https://github.com/microsoft/vscode-dev-containers/tree/v0.238.1/containers/codespaces-linux
31
{
4-
"name": "GitHub Codespaces (Default)",
5-
6-
"build": {
7-
"dockerfile": "Dockerfile"
2+
"name": "Default Linux Universal",
3+
"image": "mcr.microsoft.com/devcontainers/universal:2-linux",
4+
"features": {
5+
"ghcr.io/devcontainers-contrib/features/poetry:1": {}
86
},
9-
10-
// Configure tool-specific properties.
7+
"postCreateCommand": "poetry config virtualenvs.in-project true && poetry install && poetry run pre-commit install",
118
"customizations": {
12-
// Configure properties specific to VS Code.
139
"vscode": {
14-
// Set *default* container specific settings.json values on container create.
1510
"settings": {
16-
"go.toolsManagement.checkForUpdates": "local",
17-
"go.useLanguageServer": true,
18-
"go.gopath": "/go",
19-
"python.defaultInterpreterPath": "/opt/python/latest/bin/python",
20-
"python.linting.enabled": true,
21-
"python.formatting.autopep8Path": "/usr/local/py-utils/bin/autopep8",
22-
"python.formatting.blackPath": "/usr/local/py-utils/bin/black",
23-
"python.formatting.yapfPath": "/usr/local/py-utils/bin/yapf",
24-
"python.linting.banditPath": "/usr/local/py-utils/bin/bandit",
25-
"python.linting.flake8Path": "/usr/local/py-utils/bin/flake8",
26-
"python.linting.mypyPath": "/usr/local/py-utils/bin/mypy",
27-
"python.linting.pycodestylePath": "/usr/local/py-utils/bin/pycodestyle",
28-
"python.linting.pydocstylePath": "/usr/local/py-utils/bin/pydocstyle",
29-
"python.linting.pylintPath": "/usr/local/py-utils/bin/pylint",
3011
"python.analysis.diagnosticMode": "workspace",
3112
"python.analysis.typeCheckingMode": "basic",
3213
"[python]": {
@@ -50,7 +31,6 @@
5031
"[typescriptreact]": {
5132
"editor.defaultFormatter": "esbenp.prettier-vscode"
5233
},
53-
"lldb.executable": "/usr/bin/lldb",
5434
"files.exclude": {
5535
"**/__pycache__": true
5636
},
@@ -59,10 +39,7 @@
5939
"**/__pycache__": true
6040
}
6141
},
62-
63-
// Add the IDs of extensions you want installed when the container is created.
6442
"extensions": [
65-
"GitHub.vscode-pull-request-github",
6643
"ms-python.python",
6744
"ms-python.vscode-pylance",
6845
"ms-python.isort",
@@ -71,27 +48,5 @@
7148
"esbenp.prettier-vscode"
7249
]
7350
}
74-
},
75-
76-
"remoteUser": "codespace",
77-
78-
"overrideCommand": false,
79-
80-
"mounts": [
81-
"source=codespaces-linux-var-lib-docker,target=/var/lib/docker,type=volume"
82-
],
83-
84-
"runArgs": [
85-
"--cap-add=SYS_PTRACE",
86-
"--security-opt",
87-
"seccomp=unconfined",
88-
"--privileged",
89-
"--init"
90-
],
91-
92-
// Use 'forwardPorts' to make a list of ports inside the container available locally.
93-
// "forwardPorts": [],
94-
95-
// "oryx build" will automatically install your dependencies and attempt to build your project
96-
"postCreateCommand": "poetry install && poetry run pre-commit install"
97-
}
51+
}
52+
}

0 commit comments

Comments
 (0)