devcontainer.json 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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.224.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-bullseye",
  13. // Options
  14. "NODE_VERSION": "none"
  15. }
  16. },
  17. // Set *default* container specific settings.json values on container create.
  18. "settings": {
  19. "python.defaultInterpreterPath": "/usr/local/bin/python",
  20. "python.linting.enabled": true,
  21. "python.linting.pylintEnabled": true,
  22. "python.formatting.autopep8Path": "/usr/local/py-utils/bin/autopep8",
  23. "python.formatting.blackPath": "/usr/local/py-utils/bin/black",
  24. "python.formatting.yapfPath": "/usr/local/py-utils/bin/yapf",
  25. "python.linting.banditPath": "/usr/local/py-utils/bin/bandit",
  26. "python.linting.flake8Path": "/usr/local/py-utils/bin/flake8",
  27. "python.linting.mypyPath": "/usr/local/py-utils/bin/mypy",
  28. "python.linting.pycodestylePath": "/usr/local/py-utils/bin/pycodestyle",
  29. "python.linting.pydocstylePath": "/usr/local/py-utils/bin/pydocstyle",
  30. "python.linting.pylintPath": "/usr/local/py-utils/bin/pylint"
  31. },
  32. // Add the IDs of extensions you want installed when the container is created.
  33. "extensions": [
  34. "ms-python.python",
  35. "ms-python.vscode-pylance"
  36. ],
  37. // Use 'forwardPorts' to make a list of ports inside the container available locally.
  38. // "forwardPorts": [],
  39. // Use 'postCreateCommand' to run commands after the container is created.
  40. // "postCreateCommand": "pip3 install --user -r requirements.txt",
  41. // Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
  42. "remoteUser": "vscode"
  43. }