Skip to content

Commit 898fddf

Browse files
committed
CI: check for common mispellings
1 parent 6b796d6 commit 898fddf

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

Makefile

+4
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,10 @@ pydocstyle_report.txt: $(PYSOURCES)
107107
diff_pydocstyle_report: pydocstyle_report.txt
108108
diff-quality --compare-branch=main --violations=pydocstyle --fail-under=100 $^
109109

110+
## codespell : check for common mispellings
111+
codespell:
112+
codespell -w $(shell git ls-files | grep -v cwltool/schemas | grep -v cwltool/jshint/ | grep -v typeshed)
113+
110114
## format : check/fix all code indentation and formatting (runs black)
111115
format:
112116
black --exclude cwltool/schemas setup.py cwltool.py cwltool tests

lint-requirements.txt

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
flake8-bugbear
22
black ~= 22.0
3+
codespell

tox.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ commands_pre =
6767
commands =
6868
py3{6,7,8,9,10}-unit: make coverage-report coverage.xml PYTEST_EXTRA={posargs}
6969
py3{6,7,8,9,10}-bandit: bandit -r cwltool
70-
py3{6,7,8,9,10}-lint: make flake8 format-check
70+
py3{6,7,8,9,10}-lint: make flake8 format-check codespell
7171
py3{6,7,8,9,10}-mypy: make mypy mypyc PYTEST_EXTRA={posargs}
7272
py39-shellcheck: make shellcheck
7373
py39-pydocstyle: make diff_pydocstyle_report

0 commit comments

Comments
 (0)