curlylint.yaml 735 B

12345678910111213141516171819202122232425262728
  1. name: Templates validator
  2. on:
  3. push:
  4. branches: [ main ]
  5. pull_request:
  6. branches: [ main ]
  7. jobs:
  8. lint:
  9. runs-on: ubuntu-latest
  10. steps:
  11. - uses: actions/checkout@v3
  12. - name: Install curlylint
  13. run: pip install curlylint
  14. - name: Run linter
  15. run: >
  16. curlylint --rule 'aria_role: true' \
  17. --rule 'django_forms_rendering: true' \
  18. --rule 'html_has_lang: true' \
  19. --rule 'image_alt: true' \
  20. --rule 'meta_viewport: true' \
  21. --rule 'no_autofocus: true' \
  22. --rule 'tabindex_no_positive: true' \
  23. --exclude '_modal.html|create_status/layout.html|reading_modals/layout.html' \
  24. bookwyrm/templates