Add codespell to ci

This commit is contained in:
Martin Lundfall
2019-12-16 12:55:51 +01:00
parent a4f8a77c02
commit 5234e431ec
2 changed files with 11 additions and 0 deletions

View File

@@ -112,6 +112,15 @@ jobs:
- run:
name: Check table of contents
command: sudo npm install -g doctoc && make check_toc
codespell:
docker:
- image: circleci/python:3.6
working_directory: ~/specs-repo
steps:
- checkout
- run:
name: Check codespell
command: pip install codespell --user && make codespell
lint:
docker:
- image: circleci/python:3.6
@@ -158,6 +167,7 @@ workflows:
requires:
- install_pyspec_test
- table_of_contents
- codespell
- lint:
requires:
- test

View File

@@ -78,6 +78,7 @@ check_toc: $(MARKDOWN_FILES:=.toc)
rm $*.tmp
codespell:
# Check codespell for errors, but disregard entries in .codespell-whitelist
! codespell . --skip ./.git | grep -v 'disabled'
lint: $(PY_SPEC_ALL_TARGETS)