tasks.json 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. {
  2. "version": "2.0.0",
  3. "tasks": [
  4. {
  5. "label": "Install requirements",
  6. "type": "shell",
  7. "command": "pip3 install -r requirements-first.txt;pip3 install -r requirements-dev.txt",
  8. "problemMatcher": []
  9. },
  10. {
  11. "label": "Run Home Assistant on port 8123",
  12. "type": "shell",
  13. "command": "pkill hass;container start",
  14. "problemMatcher": []
  15. },
  16. {
  17. "label": "Run Home Assistant configuration against /config",
  18. "type": "shell",
  19. "command": "container check",
  20. "problemMatcher": []
  21. },
  22. {
  23. "label": "Upgrade Home Assistant to latest dev",
  24. "type": "shell",
  25. "command": "container install",
  26. "problemMatcher": []
  27. },
  28. {
  29. "label": "Install a specific version of Home Assistant",
  30. "type": "shell",
  31. "command": "container set-version",
  32. "problemMatcher": []
  33. },
  34. {
  35. "label": "Unit tests",
  36. "type": "shell",
  37. "command": "pytest --cov=. --cov-config=.coveragerc --cov-report xml:coverage.xml",
  38. "problemMatcher": []
  39. },
  40. {
  41. "label": "Reformat code",
  42. "type": "shell",
  43. "command": "isort --recursive . && black .",
  44. "problemMatcher": []
  45. }
  46. ]
  47. }