4
0

.pre-commit-config.yaml 806 B

1234567891011121314151617181920212223242526272829303132
  1. repos:
  2. - repo: https://github.com/pre-commit/mirrors-prettier
  3. rev: v3.0.3
  4. hooks:
  5. - id: prettier
  6. files: \.(json|md|yaml|yml)$
  7. - repo: https://github.com/astral-sh/ruff-pre-commit
  8. rev: v0.12.1
  9. hooks:
  10. - id: ruff-check
  11. args:
  12. - --fix
  13. - id: ruff-check
  14. name: ruff include order
  15. args:
  16. - --select
  17. - I
  18. - --fix
  19. - id: ruff-format
  20. name: ruff coding style
  21. args:
  22. - --check
  23. - --diff
  24. files: ^((homeassistant|pylint|script|tests)/.+)?[^/]+\.(py|pyi)$
  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. files: ^custom_components/tuya_local/devices/.+