linting.yml 812 B

1234567891011121314151617181920212223242526272829303132
  1. name: Linting
  2. on: [push, pull_request]
  3. jobs:
  4. lint:
  5. runs-on: ubuntu-latest
  6. permissions:
  7. checks: write
  8. contents: read
  9. pull-requests: write
  10. env:
  11. UV_SYSTEM_PYTHON: 1
  12. steps:
  13. - uses: actions/checkout@v6
  14. - name: Setup Python
  15. uses: actions/setup-python@v6
  16. with:
  17. python-version: '3.14'
  18. - name: Install uv
  19. uses: astral-sh/setup-uv@v7
  20. - name: Python lint
  21. run: uv run ruff check --output-format=github .
  22. - name: Python include order
  23. run: uv run ruff check --select I --diff .
  24. - name: Python coding style
  25. run: uv run ruff format --check --diff .
  26. - name: YAML lint
  27. run: uv run yamllint --format github custom_components/tuya_local/devices