Skip to content

Commit

Permalink
Add GitHub Action
Browse files Browse the repository at this point in the history
  • Loading branch information
masterleinad committed Aug 13, 2024
1 parent d3e890d commit d1a5747
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/typos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Test GitHub Action
on: [push, pull_request]

jobs:
run:
name: Spell Check with Typos
runs-on: ubuntu-latest
steps:
- name: Checkout Actions Repository
uses: actions/checkout@v4

- name: Writes changes in the local checkout
uses: crate-ci/typos@master
with:
write_changes: true
files: ./docs/source/ProgrammingGuide/ ./docs/source/API/ ./docs/source/*.rst ./docs/source/*.md
config: ./.typos.toml
15 changes: 15 additions & 0 deletions .typos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[default]
# Don't check text that matches the following regexes'
extend-ignore-re = []

[default.extend-identifiers]
# Don't correct these whole identifiers (word-groups)

[default.extend-words]
# Don't correct these word (parts)
countr = "countr"
OT = "OT"

# Don't check the following files
[files]
extend-exclude = []

0 comments on commit d1a5747

Please sign in to comment.