├── .devcontainer ├── Dockerfile └── devcontainer.json └── README.md /.devcontainer/Dockerfile: -------------------------------------------------------------------------------- 1 | # See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.245.0/containers/python-3/.devcontainer/base.Dockerfile 2 | 3 | # [Choice] Python version (use -bullseye variants on local arm64/Apple Silicon): 3, 3.10, 3.9, 3.8, 3.7, 3.6, 3-bullseye, 3.10-bullseye, 3.9-bullseye, 3.8-bullseye, 3.7-bullseye, 3.6-bullseye, 3-buster, 3.10-buster, 3.9-buster, 3.8-buster, 3.7-buster, 3.6-buster 4 | FROM mcr.microsoft.com/devcontainers/python:3.11-bullseye -------------------------------------------------------------------------------- /.devcontainer/devcontainer.json: -------------------------------------------------------------------------------- 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.0/containers/python-3 3 | { 4 | "name": "Python 3", 5 | "forwardPorts": [8000], 6 | "build": { 7 | "dockerfile": "Dockerfile", 8 | "context": ".." 9 | }, 10 | 11 | // Configure tool-specific properties. 12 | "customizations": { 13 | // Configure properties specific to VS Code. 14 | "vscode": { 15 | // Set *default* container specific settings.json values on container create. 16 | "settings": { 17 | "python.defaultInterpreterPath": "/usr/local/bin/python", 18 | "python.linting.enabled": true, 19 | "python.linting.pylintEnabled": true, 20 | "python.formatting.autopep8Path": "/usr/local/py-utils/bin/autopep8", 21 | "python.formatting.blackPath": "/usr/local/py-utils/bin/black", 22 | "python.formatting.yapfPath": "/usr/local/py-utils/bin/yapf", 23 | "python.linting.banditPath": "/usr/local/py-utils/bin/bandit", 24 | "python.linting.flake8Path": "/usr/local/py-utils/bin/flake8", 25 | "python.linting.mypyPath": "/usr/local/py-utils/bin/mypy", 26 | "python.linting.pycodestylePath": "/usr/local/py-utils/bin/pycodestyle", 27 | "python.linting.pydocstylePath": "/usr/local/py-utils/bin/pydocstyle", 28 | "python.linting.pylintPath": "/usr/local/py-utils/bin/pylint", 29 | "python.testing.unittestEnabled": false, 30 | "python.testing.pytestEnabled": true, 31 | "workbench.startupEditor": "newUntitledFile" 32 | }, 33 | 34 | // Add the IDs of extensions you want installed when the container is created. 35 | "extensions": [ 36 | "ms-python.python", 37 | "ms-python.vscode-pylance" 38 | ] 39 | } 40 | }, 41 | 42 | // Use 'forwardPorts' to make a list of ports inside the container available locally. 43 | // "forwardPorts": [], 44 | 45 | // Use 'postCreateCommand' to run commands after the container is created. 46 | //"postCreateCommand": "", 47 | 48 | // Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. 49 | "remoteUser": "vscode" 50 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | [![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://github.com/codespaces/new?hide_repo_select=true&ref=main&repo=552555575) 2 | 3 | If you need a Python 3.11 environment for demonstration or experimentation purposes, just open this repository in Codespaces using the button above. 4 | --------------------------------------------------------------------------------