Commit 82e998e3 authored by xiezhi's avatar xiezhi

multi version support

parent c1dfb1ed
{
"name": "Python 3.10 Development Environment",
"image": "hb.eazytec-cloud.com/eazytec/eazydevelop-base:ubuntu",
"features": {
"ghcr.io/devcontainers/features/python:1": {
"version": "3.10",
"installTools": true,
"installPipx": true,
"installPipxGlobalPackages": [
"black",
"flake8",
"mypy",
"pytest"
]
},
"ghcr.io/devcontainers/features/common-utils:2": {
"installZsh": true,
"configureZshAsDefaultShell": true,
"installOhMyZsh": true,
"upgradePackages": true
}
},
"customizations": {
"vscode": {
"extensions": [
"ms-python.python",
"ms-python.black-formatter",
"ms-python.flake8",
"ms-python.mypy-type-checker",
"ms-python.pylint",
"ms-python.pytest-adapter",
"ms-python.vscode-pylance"
],
"settings": {
"python.defaultInterpreterPath": "/usr/local/bin/python",
"python.configuration.updateBuildConfiguration": "automatic",
"python.linting.enabled": true,
"python.linting.flake8Enabled": true,
"python.linting.mypyEnabled": true,
"python.formatting.provider": "black",
"python.testing.pytestEnabled": true,
"python.testing.unittestEnabled": false,
"python.testing.nosetestsEnabled": false
}
}
},
"postCreateCommand": "python --version && pip --version && python /workspaces/python/hello.py",
"remoteUser": "vscode"
}
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
], ],
"settings": { "settings": {
"python.defaultInterpreterPath": "/usr/local/bin/python", "python.defaultInterpreterPath": "/usr/local/bin/python",
"python.configuration.updateBuildConfiguration": "automatic",
"python.linting.enabled": true, "python.linting.enabled": true,
"python.linting.flake8Enabled": true, "python.linting.flake8Enabled": true,
"python.linting.mypyEnabled": true, "python.linting.mypyEnabled": true,
......
{
"name": "Python 3.12 Development Environment",
"image": "hb.eazytec-cloud.com/eazytec/eazydevelop-base:ubuntu",
"features": {
"ghcr.io/devcontainers/features/python:1": {
"version": "3.12",
"installTools": true,
"installPipx": true,
"installPipxGlobalPackages": [
"black",
"flake8",
"mypy",
"pytest"
]
},
"ghcr.io/devcontainers/features/common-utils:2": {
"installZsh": true,
"configureZshAsDefaultShell": true,
"installOhMyZsh": true,
"upgradePackages": true
}
},
"customizations": {
"vscode": {
"extensions": [
"ms-python.python",
"ms-python.black-formatter",
"ms-python.flake8",
"ms-python.mypy-type-checker",
"ms-python.pylint",
"ms-python.pytest-adapter",
"ms-python.vscode-pylance"
],
"settings": {
"python.defaultInterpreterPath": "/usr/local/bin/python",
"python.configuration.updateBuildConfiguration": "automatic",
"python.linting.enabled": true,
"python.linting.flake8Enabled": true,
"python.linting.mypyEnabled": true,
"python.formatting.provider": "black",
"python.testing.pytestEnabled": true,
"python.testing.unittestEnabled": false,
"python.testing.nosetestsEnabled": false
}
}
},
"postCreateCommand": "python --version && pip --version && python /workspaces/python/hello.py",
"remoteUser": "vscode"
}
{
"name": "Python 3.9 Development Environment",
"image": "hb.eazytec-cloud.com/eazytec/eazydevelop-base:ubuntu",
"features": {
"ghcr.io/devcontainers/features/python:1": {
"version": "3.9",
"installTools": true,
"installPipx": true,
"installPipxGlobalPackages": [
"black",
"flake8",
"mypy",
"pytest"
]
},
"ghcr.io/devcontainers/features/common-utils:2": {
"installZsh": true,
"configureZshAsDefaultShell": true,
"installOhMyZsh": true,
"upgradePackages": true
}
},
"customizations": {
"vscode": {
"extensions": [
"ms-python.python",
"ms-python.black-formatter",
"ms-python.flake8",
"ms-python.mypy-type-checker",
"ms-python.pylint",
"ms-python.pytest-adapter",
"ms-python.vscode-pylance"
],
"settings": {
"python.defaultInterpreterPath": "/usr/local/bin/python",
"python.configuration.updateBuildConfiguration": "automatic",
"python.linting.enabled": true,
"python.linting.flake8Enabled": true,
"python.linting.mypyEnabled": true,
"python.formatting.provider": "black",
"python.testing.pytestEnabled": true,
"python.testing.unittestEnabled": false,
"python.testing.nosetestsEnabled": false
}
}
},
"postCreateCommand": "python --version && pip --version && python /workspaces/python/hello.py",
"remoteUser": "vscode"
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment