Skip to content

Commit

Permalink
CI: check for common mispellings
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-c committed Mar 3, 2022
1 parent 6b796d6 commit 898fddf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@ pydocstyle_report.txt: $(PYSOURCES)
diff_pydocstyle_report: pydocstyle_report.txt
diff-quality --compare-branch=main --violations=pydocstyle --fail-under=100 $^

## codespell : check for common mispellings
codespell:
codespell -w $(shell git ls-files | grep -v cwltool/schemas | grep -v cwltool/jshint/ | grep -v typeshed)

## format : check/fix all code indentation and formatting (runs black)
format:
black --exclude cwltool/schemas setup.py cwltool.py cwltool tests
Expand Down
1 change: 1 addition & 0 deletions lint-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
flake8-bugbear
black ~= 22.0
codespell
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ commands_pre =
commands =
py3{6,7,8,9,10}-unit: make coverage-report coverage.xml PYTEST_EXTRA={posargs}
py3{6,7,8,9,10}-bandit: bandit -r cwltool
py3{6,7,8,9,10}-lint: make flake8 format-check
py3{6,7,8,9,10}-lint: make flake8 format-check codespell
py3{6,7,8,9,10}-mypy: make mypy mypyc PYTEST_EXTRA={posargs}
py39-shellcheck: make shellcheck
py39-pydocstyle: make diff_pydocstyle_report
Expand Down

0 comments on commit 898fddf

Please sign in to comment.