Add rstcheck to CI to lint docs

This commit is contained in:
Andrew Imeson
2022-06-06 14:48:10 -04:00
committed by Adrien Vergé
parent c268a82c5a
commit e49a101160
2 changed files with 6 additions and 3 deletions

View File

@@ -17,10 +17,13 @@ jobs:
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
- run: python -m pip install flake8 flake8-import-order doc8 sphinx
- run:
python -m pip install flake8 flake8-import-order doc8 sphinx
rstcheck[sphinx]
- run: python -m pip install .
- run: flake8 .
- run: doc8 $(git ls-files '*.rst')
- run: rstcheck --ignore-directives automodule $(git ls-files '*.rst')
- run: yamllint --strict $(git ls-files '*.yaml' '*.yml')
- run: python setup.py build_sphinx