ci(a11y): add djlint HTML accessibility lint to CI pipeline
- Add html-lint job to CI that runs djlint on all PRs - Configure djlint in pyproject.toml with Jinja2 profile and accessibility rules - Add djlint to requirements-dev.txt - Expand accessibility section in frontend Copilot instructions (WCAG 2.1 AA) - Wire html-lint into CI dependency chain (test/mypy/build depend on it) Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
This commit is contained in:
@@ -225,3 +225,14 @@ exclude_lines = [
|
||||
"if TYPE_CHECKING:",
|
||||
"@abstractmethod",
|
||||
]
|
||||
|
||||
# djLint configuration — HTML template linter for Jinja2 templates
|
||||
# Enforces accessibility (WCAG 2.1 AA) and HTML best practices in CI.
|
||||
# Run: djlint frontend/templates/ --profile jinja --lint
|
||||
[tool.djlint]
|
||||
profile = "jinja"
|
||||
# Include only accessibility-critical and correctness rules for CI enforcement
|
||||
include = "H005,H013,H016,H025,H026"
|
||||
# Ignore rules that conflict with project patterns or produce excessive noise
|
||||
ignore = "H006,H021,H023,H030,H031,H029,H036,T003,J018,J004,T028,H014,T001"
|
||||
max_line_length = 120
|
||||
|
||||
Reference in New Issue
Block a user