.pre-commit-config.yaml 797 B

1234567891011121314151617181920212223242526272829303132
  1. repos:
  2. - repo: https://github.com/astral-sh/ruff-pre-commit
  3. rev: v0.12.1
  4. hooks:
  5. - id: ruff-check
  6. args:
  7. - --output-format=github
  8. - --fix
  9. - id: ruff-check
  10. name: ruff include order
  11. args:
  12. - --select
  13. - I
  14. - --fix
  15. - id: ruff-format
  16. name: ruff coding style
  17. args:
  18. - --check
  19. - --diff
  20. files: ^((homeassistant|pylint|script|tests)/.+)?[^/]+\.(py|pyi)$
  21. - repo: https://github.com/pre-commit/mirrors-prettier
  22. rev: v3.0.3
  23. hooks:
  24. - id: prettier
  25. - repo: https://github.com/adrienverge/yamllint.git
  26. rev: v1.37.1
  27. hooks:
  28. - id: yamllint
  29. args:
  30. - --format
  31. - github
  32. - custom_components/tuya_local/devices