github/workflows: Move codespell to a GitHub workflow, version it.

Similar to ruff.yaml, it's simpler to run the codespell command directly
from a workflow file.  And developers can run codespell directly from the
command line without the need for options, or just use pre-commit.

This commit also applies a specific version to codespell, same as
pre-commit (introduced in a166d805f4).

This work was funded through GitHub Sponsors.

Signed-off-by: Angus Gratton <angus@redyak.com.au>
This commit is contained in:
Angus Gratton
2024-01-31 10:55:17 +11:00
committed by Damien George
parent b038d07011
commit 84e90639fa
3 changed files with 12 additions and 21 deletions

View File

@@ -30,17 +30,6 @@ function ci_c_code_formatting_run {
tools/codeformat.py -v -c
}
########################################################################################
# code spelling
function ci_code_spell_setup {
pip3 install codespell tomli
}
function ci_code_spell_run {
codespell
}
########################################################################################
# commit formatting