Skip to content

Commit 356c093

Browse files
committed
codespell
1 parent 7480a23 commit 356c093

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
lines changed

Makefile

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,14 @@ pydocstyle_report.txt: $(PYSOURCES)
111111
diff_pydocstyle_report: pydocstyle_report.txt
112112
diff-quality --compare-branch=main --violations=pydocstyle --fail-under=100 $^
113113

114-
## codespell : check for common misspellings
115-
codespell:
116-
codespell -w $(shell git ls-files | grep -v cwltool/schemas | grep -v cwltool/jshint/ | grep -v mypy-stubs)
114+
## codespell-check : check for common misspellings
115+
codespell-check:
116+
@codespell $(shell git ls-files | grep -v cwltool/schemas | grep -v cwltool/jshint/ | grep -v mypy-stubs) \
117+
|| (echo Probable typo foun. Run \"make codespell-fix\" to accept suggested fixes, or add the word to the ignore list in setup.cfg ; exit 1)
118+
119+
## codespell-fix : fix common misspellings
120+
codespell-fix:
121+
@codespell -w $(shell git ls-files | grep -v cwltool/schemas | grep -v cwltool/jshint/ | grep -v mypy-stubs)
117122

118123
## format : check/fix all code indentation and formatting (runs black)
119124
format:

cwltool/workflow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242

4343

4444
def default_make_tool(toolpath_object: CommentedMap, loadingContext: LoadingContext) -> Process:
45-
"""Instatiate the given CWL Process."""
45+
"""Instantiate the given CWL Process."""
4646
if not isinstance(toolpath_object, MutableMapping):
4747
raise WorkflowException("Not a dict: '%s'" % toolpath_object)
4848
if "class" in toolpath_object:

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ use_parentheses = True
99
line_length = 88
1010

1111
[codespell]
12-
ignore-words-list=ORE,ore,RO,ro
12+
ignore-words-list=ORE,ore,RO,ro,recuse

tox.ini

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

0 commit comments

Comments
 (0)