Skip to content

Commit

Permalink
make codespell
Browse files Browse the repository at this point in the history
  • Loading branch information
huxuan committed Jul 6, 2024
1 parent 971da7a commit e124852
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"autofix",
"automodule",
"cobertura",
"codespell",
"commitlint",
"conventionalcommits",
"datasource",
Expand Down
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions template/.vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"autofix",
"automodule",
"cobertura",
"codespell",
"commitlint",
"conventionalcommits",
"datasource",
Expand Down
8 changes: 6 additions & 2 deletions template/Makefile.jinja
Original file line number Diff line number Diff line change
@@ -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 %]

########################################################################################
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit e124852

Please sign in to comment.