Check for syntax and accessibility misuse in Chameleon templates.
In .pre-commit-config.yaml
add:
- repo: https://github.com/minddistrict/pre-commit-check-chameleon
rev: 1.0
hooks:
- id: check-chameleon
Exclude files in the given path from the accessibility checks, so they just get checked for correct XML syntax.
Example:
- repo: https://github.com/minddistrict/pre-commit-check-chameleon
rev: 1.0
hooks:
- id: check-chameleon
args: [--a11y-lint-exclude=src/module_a/module_b/templates]