From 2f2b4c96882d4b0ef3ba0fe261fb0313bc5d0d11 Mon Sep 17 00:00:00 2001 From: Joe Mooring Date: Sat, 16 Aug 2025 11:29:27 -0700 Subject: [PATCH] misc: Update spellcheck configs --- .codespellrc | 4 ++-- .cspell.json | 14 +++++++++++--- .github/workflows/spellcheck.yml | 10 ++++------ 3 files changed, 17 insertions(+), 11 deletions(-) diff --git a/.codespellrc b/.codespellrc index 564fc77c0..f322b0123 100644 --- a/.codespellrc +++ b/.codespellrc @@ -4,10 +4,10 @@ [codespell] # Comma separated list of dirs to be skipped. -skip = _vendor,.cspell.json,chroma.css,chroma_dark.css +skip = *.ai,chroma.css,chroma_dark.css,.cspell.json # Comma separated list of words to be ignored. Words must be lowercased. -ignore-words-list = abl,edn,te,ue,trys,januar,womens,crossreferences +ignore-words-list = abl,edn,januar,te,trys,ue,womens # Check file names as well. check-filenames = true diff --git a/.cspell.json b/.cspell.json index 2309e31ff..28dba57be 100644 --- a/.cspell.json +++ b/.cspell.json @@ -1,8 +1,15 @@ { "version": "0.2", "allowCompoundWords": true, - "files": [ - "**/*.md" + "overrides": [ + { + "filename": "**/*", + "enabled": false + }, + { + "filename": "**/*.md", + "enabled": true + } ], "flagWords": [ "alot", @@ -13,7 +20,6 @@ "teh" ], "ignorePaths": [ - "**/*.ai", "**/emojis.md", "**/commands/*", "**/showcase/*", @@ -102,6 +108,8 @@ "descripción", "dokumentation", "erklärungen", + "español", + "français", "libros", "mercredi", "miesiąc", diff --git a/.github/workflows/spellcheck.yml b/.github/workflows/spellcheck.yml index e01ab1764..24acbdbc3 100644 --- a/.github/workflows/spellcheck.yml +++ b/.github/workflows/spellcheck.yml @@ -13,15 +13,13 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: streetsidesoftware/cspell-action@v5 + - uses: streetsidesoftware/cspell-action@v7 with: - check_dot_files: false - files: content/**/*.md incremental_files_only: true - inline: warning - strict: false + strict: true + # cspell uses the .cspell.json configuration file - uses: codespell-project/actions-codespell@v2 with: check_filenames: true check_hidden: true - # by default, codespell uses configuration from the .codespellrc + # codespell uses the .codespellrc file