You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.2 KiB
40 lines
1.2 KiB
{
|
|
"name": "Multi-Python DevContainer",
|
|
"build": {
|
|
"dockerfile": "Dockerfile"
|
|
},
|
|
"features": {
|
|
"ghcr.io/devcontainers/features/python:1": {
|
|
"version": "3.9"
|
|
}
|
|
},
|
|
"customizations": {
|
|
"vscode": {
|
|
"extensions": [
|
|
"ms-python.python",
|
|
"ms-python.vscode-pylance",
|
|
"ms-python.flake8", // Voeg Flake8 toe voor linting
|
|
"visualstudioexptteam.vscodeintellicode"
|
|
],
|
|
"settings": {
|
|
"python.linting.enabled": true,
|
|
"python.linting.flake8Enabled": true,
|
|
"python.linting.pylintEnabled": false, // Als je Flake8 wilt gebruiken, zet Pylint uit
|
|
"python.linting.lintOnSave": true, // Lint bij opslaan
|
|
"python.linting.flake8Args": [
|
|
"--max-line-length=88" // Optionele linting instelling voor max lijnlengte
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"postCreateCommand": "find /workspace -type f -name 'requirements.txt' -exec pip install --no-cache-dir -r {} \\;",
|
|
"remoteUser": "root",
|
|
"mounts": [
|
|
"source=${localWorkspaceFolder},target=/workspace,type=bind"
|
|
],
|
|
"runArgs": ["--entrypoint", "bash"],
|
|
"settings": {
|
|
"python.pythonPath": "/usr/local/bin/python"
|
|
}
|
|
}
|