Skip to content

Commit e6f658f

Browse files
committed
Re-enabled typos check with hex exclusion regex
1 parent 55ad27c commit e6f658f

3 files changed

Lines changed: 11 additions & 8 deletions

File tree

.githooks/pre-push

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,10 @@ if ! cargo fmt --all -- --check; then
2020
fi
2121

2222
# Typo check
23-
# TODO(template) enable if sensible
24-
# if ! typos; then
25-
# echo "❌ Spelling mistakes found (run 'typos --write-changes')"
26-
# exit 4
27-
# fi
23+
if ! typos; then
24+
echo "❌ Spelling mistakes found (run 'typos --write-changes')"
25+
exit 4
26+
fi
2827

2928
# Linting
3029
if ! cargo clippy --all-targets --all-features -- -D warnings; then

.github/workflows/linter.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,5 @@ jobs:
1919
- name: Run Clippy
2020
run: cargo clippy --all-targets --all-features
2121

22-
# TODO(template) enable if sensible
23-
# - name: Check typos
24-
# uses: crate-ci/typos@master
22+
- name: Check typos
23+
uses: crate-ci/typos@master

_typos.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[default]
2+
extend-ignore-re = [
3+
"0x[0-9a-fA-F]+", # Hexadecimal numbers
4+
]
5+

0 commit comments

Comments
 (0)