diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2021-08-10 16:49:01 +0200 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2021-08-10 16:54:16 +0200 |
commit | 9cb3ccb219c6a555bab9d80940d711078e9e7c87 (patch) | |
tree | e988ca40b928a54b140add1f6a76fccd5a88ea98 | |
parent | 53834eb950b96257b6488bed7f148df9382fdbd7 (diff) |
Use codespell for spelling check
-rw-r--r-- | .github/workflows/test.yml | 13 | ||||
-rw-r--r-- | setup.cfg | 3 | ||||
-rw-r--r-- | tox.ini | 7 |
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: @@ -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 @@ -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 = |