Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 624 Bytes

README.md

File metadata and controls

32 lines (22 loc) · 624 Bytes

ocw-hugo-projects

A collection of Hugo project templates for different types of OCW websites

linting and formatting

We have a YAML linting and formatting setup in this repo to ensure that, at the least, our checked-in files are valid YAML files.

To install dependencies you'll want to do something like the following:

yarn install # install prettier
virtualenv env
source env/bin/activate
pip install -r requirements.txt # install yamllint

Then you can run the linter by doing

yamllint .

And run the formatter with

yarn fmt

These checks are run on PRs by GitHub actions as well.