Skip to content

Commit c59e1cd

Browse files
committed
Run typo check in CI
1 parent c9ee4d2 commit c59e1cd

6 files changed

Lines changed: 20 additions & 6 deletions

File tree

.github/workflows/test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ jobs:
8383
cargo install --git https://github.com/spirali/cli_doc
8484
mkdocs build
8585
86+
87+
- name: Spellcheck
88+
uses: crate-ci/typos@v1.34.0
8689
compatibility_mode:
8790
runs-on: ${{ matrix.os }}
8891
strategy:

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
__pycache__
44
*.so
55
*snap
6+
/venv

.typos.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[default.extend-words]
2+
ratatui = "ratatui"
3+
HPE = "HPE"
4+
5+
[files]
6+
# typos doesn't have an include list, so this is an alternative,
7+
# so that we don't have to spell out the correct filenames both in scripts and on CI
8+
extend-exclude = ["*", "!crates", "!tests", "!docs", "!README.md", "!CHANGELOG.md"]

_typos.toml

Lines changed: 0 additions & 4 deletions
This file was deleted.

scripts/fix-typos.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
cd `dirname $0`/..
6+
7+
cargo install --locked typos-cli@1.34.0
8+
typos -w

scripts/typos.sh

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)