bookwyrm/.github/workflows/curlylint.yaml

29 lines
735 B
YAML
Raw Permalink Normal View History

2021-08-21 18:39:21 +00:00
name: Templates validator
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
lint:
runs-on: ubuntu-latest
steps:
2024-03-13 11:30:52 +00:00
- uses: actions/checkout@v4
2021-08-21 18:39:21 +00:00
- name: Install curlylint
run: pip install curlylint
- name: Run linter
run: >
curlylint --rule 'aria_role: true' \
2021-08-21 18:45:36 +00:00
--rule 'django_forms_rendering: true' \
--rule 'html_has_lang: true' \
--rule 'image_alt: true' \
--rule 'meta_viewport: true' \
--rule 'no_autofocus: true' \
--rule 'tabindex_no_positive: true' \
2021-10-01 05:27:30 +00:00
--exclude '_modal.html|create_status/layout.html|reading_modals/layout.html' \
2021-08-21 18:45:36 +00:00
bookwyrm/templates