A collection of Hugo project templates for different types of OCW websites
We use pre-commit to ensure that, at the least, our checked-in files are valid YAML files.
To set up pre-commit you'll want to do something like the following:
pip install pre-commit
pre-commit installThen you can run the pre-commit hooks by doing
pre-commit run --all-filesTo run only some hooks e.g for the formatter only
pre-commit run yamlfmt --all-filesThese checks are run on PRs by GitHub actions as well.