4
0

tasks.json 842 B

1234567891011121314151617181920212223242526272829303132333435
  1. {
  2. "version": "2.0.0",
  3. "tasks": [
  4. {
  5. "label": "Install requirements",
  6. "type": "shell",
  7. "command": "pip3 install -r requirements-dev.txt",
  8. "problemMatcher": []
  9. },
  10. {
  11. "label": "Run Home Assistant on port 8123",
  12. "type": "shell",
  13. "command": "python -m homeassistant",
  14. "problemMatcher": []
  15. },
  16. {
  17. "label": "Upgrade Home Assistant to latest dev",
  18. "type": "shell",
  19. "command": "pip install -U home-assistant",
  20. "problemMatcher": []
  21. },
  22. {
  23. "label": "Unit tests",
  24. "type": "shell",
  25. "command": "pytest --cov=. --cov-config=.coveragerc --cov-report xml:coverage.xml",
  26. "problemMatcher": []
  27. },
  28. {
  29. "label": "Reformat code",
  30. "type": "shell",
  31. "command": "isort . && black .",
  32. "problemMatcher": []
  33. }
  34. ]
  35. }