Skip to content

Commit 55b1777

Browse files
committed
feat: add typos configuration and update workflow for typo checks
1 parent 7f022fc commit 55b1777

2 files changed

Lines changed: 23 additions & 8 deletions

File tree

.github/typos_config.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Typos configuration file
2+
3+
[default]
4+
extend-ignore-re = [
5+
# Add regexes to ignore specific patterns
6+
]
7+
8+
[default.extend-words]
9+
# Add exceptions to the dictionary
10+
datas = "datas"

.github/workflows/typos.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,20 @@
1-
name: Check for typos
1+
name: Typo Check
22

33
on:
4-
[push, pull_request, workflow_dispatch]
4+
push:
5+
branches: [ main, master ]
6+
pull_request:
7+
branches: [ main, master ]
58

69
jobs:
7-
check-typos:
10+
typos:
11+
name: Check for typos
812
runs-on: ubuntu-latest
9-
1013
steps:
11-
- uses: actions/checkout@v4
12-
- run: git fetch origin ${{ github.base_ref }}
14+
- name: Checkout code
15+
uses: actions/checkout@v3
1316

14-
- name: Run spellcheck
15-
uses: crate-ci/typos@v1.31.1
17+
- name: Run typos check
18+
uses: crate-ci/typos@v1.13.10
19+
with:
20+
config: ./.github/typos_config.toml

0 commit comments

Comments
 (0)