Add a full spellcheck.
This commit is contained in:
parent
20a917b074
commit
d51801ac65
4 changed files with 34 additions and 40 deletions
11
.codespellrc
Normal file
11
.codespellrc
Normal file
|
|
@ -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
|
||||
23
.forgejo/workflows/spelling.yml
Normal file
23
.forgejo/workflows/spelling.yml
Normal file
|
|
@ -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
|
||||
|
|
@ -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
|
||||
13
typos.toml
13
typos.toml
|
|
@ -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",
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue