summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2023-03-08 13:15:25 +1100
committerDamien George <damien@micropython.org>2023-04-27 16:01:14 +1000
commitd77c35f110954927ac1f91ce50ca12d81da9df1a (patch)
tree67c8b8abac1961fd52f26e900db0b5122c5ff303 /tools
parent07a719a315e8ed184513391d337f478ed05a5f82 (diff)
tools/ci.sh: Add functions to check code spelling using codespell.
Signed-off-by: Damien George <damien@micropython.org> tools/ci.sh: Explicitly specify pyproject.toml. Signed-off-by: Damien George <damien@micropython.org> tools/ci.sh: Import tomli. Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/ci.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/ci.sh b/tools/ci.sh
index d44f341ce..0eb94b339 100755
--- a/tools/ci.sh
+++ b/tools/ci.sh
@@ -29,6 +29,17 @@ function ci_code_formatting_run {
}
########################################################################################
+# code spelling
+
+function ci_code_spell_setup {
+ pip3 install codespell tomli
+}
+
+function ci_code_spell_run {
+ codespell
+}
+
+########################################################################################
# commit formatting
function ci_commit_formatting_run {