Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2021-08-10 16:49:01 +0200
committerArthur de Jong <arthur@arthurdejong.org>2021-08-10 16:54:16 +0200
commit9cb3ccb219c6a555bab9d80940d711078e9e7c87 (patch)
treee988ca40b928a54b140add1f6a76fccd5a88ea98
parent53834eb950b96257b6488bed7f148df9382fdbd7 (diff)
Use codespell for spelling check
-rw-r--r--.github/workflows/test.yml13
-rw-r--r--setup.cfg3
-rw-r--r--tox.ini7
3 files changed, 22 insertions, 1 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index aeb9edb..34cbc2f 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -22,6 +22,19 @@ jobs:
run: python -m pip install --upgrade pip tox
- name: Run tox
run: tox -e flake8 --skip-missing-interpreters false
+ codespell:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v2
+ - name: Set up Python 3.8
+ uses: actions/setup-python@v2
+ with:
+ python-version: 3.8
+ - name: Install dependencies
+ run: python -m pip install --upgrade pip tox
+ - name: Run tox
+ run: tox -e codespell --skip-missing-interpreters false
eslint:
runs-on: ubuntu-latest
steps:
diff --git a/setup.cfg b/setup.cfg
index 89fd2cb..536d732 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -4,3 +4,6 @@ max-line-length = 120
[isort]
lines_after_imports = 2
multi_line_output = 4
+
+[codespell]
+skip = *.egg-info,ChangeLog,./.git,./.tox,./build,./coverage,./node_modules,./static,package-lock.json
diff --git a/tox.ini b/tox.ini
index 93c4496..99c9eb5 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,5 +1,5 @@
[tox]
-envlist = flake8,eslint
+envlist = flake8,codespell,eslint
[testenv:flake8]
skip_install = true
@@ -20,6 +20,11 @@ deps = flake8
pep8-naming
commands = flake8 channel.py
+[testenv:codespell]
+skip_install = true
+deps = codespell
+commands = codespell {posargs}
+
[testenv:eslint]
skip_install = true
commands =