linting.yml 739 B

123456789101112131415161718192021222324252627
  1. name: Linting
  2. on: [push, pull_request]
  3. jobs:
  4. lint:
  5. runs-on: ubuntu-latest
  6. steps:
  7. - uses: actions/checkout@v4
  8. - name: Setup Python
  9. uses: actions/setup-python@v5
  10. with:
  11. python-version: '3.13'
  12. - name: Install dependencies
  13. run: |
  14. python -m pip install --upgrade pip
  15. pip install -r requirements-dev.txt
  16. - name: Python lint
  17. run: ruff check --output-format=github .
  18. - name: Python include order
  19. run: ruff check --select I --diff .
  20. - name: Python coding style
  21. run: ruff format --check --diff .
  22. - name: YAML lint
  23. run: yamllint --format github custom_components/tuya_local/devices