Running checks before you push to GitHub
GitHub Actions checks every pull request, but a round trip through CI takes minutes and leaves a trail of "fix lint" commits. The same checks run locally in seconds.
From the command line
# Interview YAML: structure, WCAG, and broken links
python3 -m dayamlchecker docassemble/MyPackage/data/questions/
# Word templates: document accessibility
python3 -m dayamlchecker docassemble/MyPackage/data/templates/
# Python: syntax, formatting, docstrings, tests
python3 -m compileall . -q
black .
docsig docassemble/
pytest
See the DAYamlChecker page for what each finding means and how to suppress one.
Skip the network when you are iterating
dayamlchecker requests every external link it finds, which is the slowest thing it
does. Pass --no-url-check while you are working, and leave the link checking to CI.