devcontainer.json 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. {
  2. "name": "Tuya Local Dev",
  3. "image": "mcr.microsoft.com/devcontainers/python:3.13",
  4. "postCreateCommand": "pip3 install -r requirements.txt",
  5. "containerEnv": {
  6. "DEVCONTAINER": "1"
  7. },
  8. "forwardPorts": [8123],
  9. "portsAttributes": {
  10. "8123": {
  11. "label": "Home Assistant"
  12. },
  13. "0-8122": {
  14. "label": "Auto-Forwarded - Other",
  15. "onAutoForward": "ignore"
  16. },
  17. "8124-999999": {
  18. "label": "Auto-Forwarded - Other",
  19. "onAutoForward": "ignore"
  20. }
  21. },
  22. "customizations": {
  23. "vscode": {
  24. "extensions": [
  25. "ms-python.vscode-pylance",
  26. "visualstudioexptteam.vscodeintellicode",
  27. "redhat.vscode-yaml",
  28. "esbenp.prettier-vscode",
  29. "GitHub.vscode-pull-request-github",
  30. "ms-python.pylint",
  31. "ms-python.black-formatter",
  32. "ms-python.isort",
  33. "ms-python.python",
  34. "ryanluker.vscode-coverage-gutters"
  35. ],
  36. "settings": {
  37. "python.linting.enabled": true,
  38. "python.linting.pylintEnabled": true,
  39. "python.formatting.provider": "black",
  40. "python.testing.pytestArgs": [
  41. "--no-cov"
  42. ],
  43. "editor.formatOnPaste": false,
  44. "editor.formatOnSave": true,
  45. "editor.formatOnType": true,
  46. "files.eol": "\n",
  47. "editor.tabSize": 4,
  48. "files.trimTrailingWhitespace": true,
  49. "terminal.integrated.profiles.linux": {
  50. "zsh": {
  51. "path": "/usr/bin/zsh"
  52. }
  53. },
  54. "terminal.integrated.defaultProfile.linux": "zsh",
  55. "yaml.customTags": [
  56. "!input scalar",
  57. "!secret scalar",
  58. "!include_dir_named scalar",
  59. "!include_dir_list scalar",
  60. "!include_dir_merge_list scalar",
  61. "!include_dir_merge_named scalar"
  62. ]
  63. }
  64. }
  65. },
  66. "remoteUser": "vscode",
  67. "features": {
  68. "rust": "latest"
  69. }
  70. }