devcontainer.json 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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.187.0/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.6, 3.7, 3.8, 3.9
  10. "VARIANT": "3.9.0-buster",
  11. // Options
  12. "INSTALL_NODE": "false",
  13. "NODE_VERSION": "lts/*"
  14. }
  15. },
  16. // Set *default* container specific settings.json values on container create.
  17. "settings": {
  18. "python.pythonPath": "/usr/local/bin/python",
  19. "python.languageServer": "Pylance",
  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. "platformio.platformio-ide",
  37. "marlinfirmware.auto-build",
  38. "editorconfig.editorconfig"
  39. ],
  40. // Use 'forwardPorts' to make a list of ports inside the container available locally.
  41. // "forwardPorts": [],
  42. // Use 'postCreateCommand' to run commands after the container is created.
  43. // "postCreateCommand": "pip3 install --user -r requirements.txt",
  44. // Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
  45. // "remoteUser": "vscode"
  46. }