diff --git a/.vscode/settings.json b/.vscode/settings.json index 7766d6b5..936f77b9 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -17,6 +17,7 @@ "autofix", "automodule", "cobertura", + "codespell", "commitlint", "conventionalcommits", "datasource", diff --git a/Makefile b/Makefile index 045a3bc5..9e9af78b 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: clean deepclean install dev prerequisites mypy ruff ruff-format pyproject-fmt lint pre-commit test-run test build publish doc-autobuild doc-gen doc-mypy doc-coverage doc consistency +.PHONY: clean deepclean install dev prerequisites mypy ruff ruff-format pyproject-fmt codespell lint pre-commit test-run test build publish doc-autobuild doc-gen doc-mypy doc-coverage doc consistency ######################################################################################## # Variables @@ -86,8 +86,12 @@ ruff-format: pyproject-fmt: pyproject-fmt pyproject.toml +# Check lint with codespell. +codespell: + codespell + # Check lint with all linters. -lint: mypy ruff ruff-format pyproject-fmt +lint: mypy ruff ruff-format pyproject-fmt codespell # Run pre-commit with autofix against all files. pre-commit: diff --git a/template/.vscode/settings.json b/template/.vscode/settings.json index 7766d6b5..936f77b9 100644 --- a/template/.vscode/settings.json +++ b/template/.vscode/settings.json @@ -17,6 +17,7 @@ "autofix", "automodule", "cobertura", + "codespell", "commitlint", "conventionalcommits", "datasource", diff --git a/template/Makefile.jinja b/template/Makefile.jinja index a1001459..52877772 100644 --- a/template/Makefile.jinja +++ b/template/Makefile.jinja @@ -1,5 +1,5 @@ [% from pathjoin("includes", "variable.jinja") import page_url with context -%] -.PHONY: clean deepclean install dev prerequisites mypy ruff ruff-format pyproject-fmt lint pre-commit test-run test build publish doc-autobuild doc-gen doc-mypy doc-coverage doc +.PHONY: clean deepclean install dev prerequisites mypy ruff ruff-format pyproject-fmt codespell lint pre-commit test-run test build publish doc-autobuild doc-gen doc-mypy doc-coverage doc [%- if project_name == "Serious Scaffold Python" %] consistency[% endif %] ######################################################################################## @@ -88,8 +88,12 @@ ruff-format: pyproject-fmt: pyproject-fmt pyproject.toml +# Check lint with codespell. +codespell: + codespell + # Check lint with all linters. -lint: mypy ruff ruff-format pyproject-fmt +lint: mypy ruff ruff-format pyproject-fmt codespell # Run pre-commit with autofix against all files. pre-commit: