From 119a116918d663470d93c699479a3ffa3d616b48 Mon Sep 17 00:00:00 2001 From: tecnovert Date: Sat, 30 May 2026 17:42:06 +0200 Subject: [PATCH] test: add codespell extra dictionary and add config to .toml --- .github/workflows/ci.yml | 2 +- pyproject.toml | 8 ++++++++ tests/lint/spelling.extra_dictionary.txt | 1 + 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 tests/lint/spelling.extra_dictionary.txt diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f0ad72b..15871d4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -60,7 +60,7 @@ jobs: flake8 --ignore=E203,E501,W503 --exclude=basicswap/contrib,basicswap/interface/contrib,.eggs,.tox,bin/install_certifi.py - name: Run codespell run: | - codespell --check-filenames --disable-colors --quiet-level=7 --ignore-words=tests/lint/spelling.ignore-words.txt -S .git,.eggs,.tox,pgp,*.pyc,*basicswap/contrib,*basicswap/interface/contrib,*mnemonics.py,bin/install_certifi.py,*basicswap/static + codespell - name: Run black run: | black --check --diff --exclude="contrib" . diff --git a/pyproject.toml b/pyproject.toml index 1271a37..c7230ff 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -48,3 +48,11 @@ allow-direct-references = true [tool.ruff] exclude = ["basicswap/contrib","basicswap/interface/contrib"] + +[tool.codespell] +check-filenames = true +disable-colors = true +quiet-level = 7 +dictionary = "tests/lint/spelling.extra_dictionary.txt,-" +ignore-words = "tests/lint/spelling.ignore-words.txt" +skip = ".git,.eggs,.tox,pgp,*.pyc,*basicswap/contrib,*basicswap/interface/contrib,*mnemonics.py,bin/install_certifi.py,*basicswap/static" diff --git a/tests/lint/spelling.extra_dictionary.txt b/tests/lint/spelling.extra_dictionary.txt new file mode 100644 index 0000000..48a0cff --- /dev/null +++ b/tests/lint/spelling.extra_dictionary.txt @@ -0,0 +1 @@ +confimration->confirmation