Debian Codegraph @

.devcontainer/devcontainer.json

raw symbols SCIP
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.245.2/containers/python-3
3 {
4 "name": "Python 3",
5 "build": {
6 "dockerfile": "Dockerfile",
7 "context": "..",
8 "args": {
9 // Update 'VARIANT' to pick a Python version: 3, 3.10, 3.9, 3.8, 3.7, 3.6
10 // Append -bullseye or -buster to pin to an OS version.
11 // Use -bullseye variants on local on arm64/Apple Silicon.
12 "VARIANT": "3.10",
13 // Options
14 "NODE_VERSION": "none"
15 }
16 },
17 // Configure tool-specific properties.
18 "customizations": {
19 // Configure properties specific to VS Code.
20 "vscode": {
21 // Set *default* container specific settings.json values on container create.
22 "settings": {
23 "python.defaultInterpreterPath": "/usr/local/bin/python",
24 "python.linting.enabled": true,
25 "python.formatting.provider": "black",
26 "python.formatting.blackArgs": [
27 "--config",
28 "./pyproject.toml"
29 ],
30 "python.formatting.autopep8Path": "/usr/local/py-utils/bin/autopep8",
31 "python.formatting.blackPath": "/usr/local/py-utils/bin/black",
32 "python.formatting.yapfPath": "/usr/local/py-utils/bin/yapf",
33 "python.linting.banditPath": "/usr/local/py-utils/bin/bandit",
34 "python.linting.flake8Path": "/usr/local/py-utils/bin/flake8",
35 "python.linting.mypyPath": "/usr/local/py-utils/bin/mypy",
36 "python.linting.pycodestylePath": "/usr/local/py-utils/bin/pycodestyle",
37 "python.linting.pydocstylePath": "/usr/local/py-utils/bin/pydocstyle",
38 },
39 // Add the IDs of extensions you want installed when the container is created.
40 "extensions": [
41 "ms-python.python",
42 "ms-python.vscode-pylance",
43 "charliermarsh.ruff",
44 "tamasfe.even-better-toml"
45 ]
46 }
47 },
48 // Use 'forwardPorts' to make a list of ports inside the container available locally.
49 // "forwardPorts": [],
50 // Use 'postCreateCommand' to run commands after the container is created.
51 // "postCreateCommand": "pip3 install --user -r requirements.txt",
52 // Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
53 "remoteUser": "vscode",
54 "features": {
55 "git": "latest",
56 "github-cli": "latest",
57 "sshd": "latest",
58 "homebrew": "latest"
59 },
60 "postCreateCommand": "./.devcontainer/postCreateCommand.sh"
61 }