diff --git a/.codespellrc b/.codespellrc new file mode 100644 index 0000000..ed4b9d0 --- /dev/null +++ b/.codespellrc @@ -0,0 +1,11 @@ +[codespell] +# Only check these file types +skip = .git,target,node_modules,.forgejo,src,bin,*.js,*.ts,*.py,*.go,*.rs +extensions = md,html,adoc,txt + +# Built-in dictionary + ignore words +ignore-words-list = +dictionaries = clear,rare,informal,code + +# Be strict +check-filenames = false diff --git a/.forgejo/workflows/spelling.yml b/.forgejo/workflows/spelling.yml new file mode 100644 index 0000000..657940b --- /dev/null +++ b/.forgejo/workflows/spelling.yml @@ -0,0 +1,23 @@ +name: Spell Check + +on: + push: + branches: + - main + +jobs: + codespell: + name: Check spelling + runs-on: ubuntu-latest + steps: + - name: Checkout repository + run: | + git clone --depth 1 https://token:${{ secrets.ACTIONS_TOKEN }}@gugulet.hu/technical/git/g_it/site.git . + + - name: Install codespell + run: | + apt-get update && apt-get install -y python3-pip + pip install codespell + + - name: Run codespell + run: codespell --config .codespellrc diff --git a/.forgejo/workflows/typos.yml b/.forgejo/workflows/typos.yml deleted file mode 100644 index 4b83592..0000000 --- a/.forgejo/workflows/typos.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: Spell Check with typos - -on: - push: - branches: - - main - -jobs: - typos: - name: Check for typos - runs-on: ubuntu-latest - steps: - - name: Checkout repository - run: | - git clone --depth 1 https://token:${{ secrets.ACTIONS_TOKEN }}@gugulet.hu/technical/git/g_it/site.git . - cd site || true - - - name: Install Rust and typos - run: | - curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y - source $HOME/.cargo/env - cargo install typos-cli - - - name: Run typos - run: | - source $HOME/.cargo/env - typos diff --git a/typos.toml b/typos.toml deleted file mode 100644 index d95c5e1..0000000 --- a/typos.toml +++ /dev/null @@ -1,13 +0,0 @@ -[default] -# Only check these file extensions -extend-include = ["*.md", "*.html"] - -# Exclude code directories -exclude = [ - ".git", - "target", - "node_modules", - ".forgejo", - "src", - "bin", -]