1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83
|
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
// https://github.com/microsoft/vscode-dev-containers/tree/v0.234.0/containers/python-3
{
"name": "apt-mirror2",
"dockerComposeFile": [
"docker-compose.yml"
],
"service": "apt-mirror2-vscode",
"workspaceFolder": "/workspace",
"customizations": {
"vscode": {
"settings": {
"json.format.enable": false,
"python.analysis.packageIndexDepths": [
{
"name": "apt_mirror2",
"depth": 3
},
{
"name": "aiofile",
"depth": 3
},
{
"name": "aiolimiter",
"depth": 3
},
{
"name": "aioftp",
"depth": 3
},
{
"name": "debian",
"depth": 3
},
{
"name": "httpx",
"depth": 3
}
],
"python.analysis.autoImportCompletions": true,
"python.autoComplete.extraPaths": [
"${workspaceRoot}"
],
"python.analysis.extraPaths": [
"${workspaceRoot}"
],
"python.defaultInterpreterPath": "/usr/local/bin/python",
"python.formatting.provider": "ruff",
"[python]": {
"editor.codeActionsOnSave": {
"source.fixAll.ruff": "always",
"source.organizeImports.ruff": "always"
},
"editor.formatOnSave": true
}
},
"extensions": [
"ms-azuretools.vscode-docker",
"ms-python.python",
"ms-python.pylint",
"ms-python.vscode-pylance",
"charliermarsh.ruff",
"tamasfe.even-better-toml"
]
}
},
// Use 'forwardPorts' to make a list of ports inside the container available locally.
"forwardPorts": [
8000
],
// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "pip3 install --user -r requirements.txt",
// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "vscode"
}
|