Skip to content

Commit 4424d03

Browse files
authored
refactor: 🚚 move typos.toml into .config/ (#317)
1 parent 56b56c3 commit 4424d03

8 files changed

Lines changed: 13 additions & 12 deletions

File tree

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
[files]
22
extend-exclude = [
33
"*.html",
4-
"*.json",
54
"*.css",
65
".quarto/*",
76
"_site/*",
8-
"_extensions/*",
9-
".coverage-report/*",
10-
"site_libs/",
117
"*.svg",
12-
# Since it has hashes
8+
# Has commit hashes that trigger false positives
139
"CHANGELOG.md",
1410
]

.github/workflows/checks.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ jobs:
5050

5151
- name: Spell check repo
5252
uses: crate-ci/typos@bee27e3a4fd1ea2111cf90ab89cd076c870fce14 # v1.48.0
53+
with:
54+
config: .config/typos.toml
5355

5456
check-website-build:
5557
runs-on: ubuntu-latest

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ repos:
2727
rev: v1.48.0
2828
hooks:
2929
- id: typos
30+
args: [--config, .config/typos.toml, --force-exclude]
3031

3132
- repo: https://github.com/rvben/rumdl-pre-commit
3233
rev: v0.2.28

.vscode/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"*.qmd.jinja": "jinja-md"
2727
},
2828
"files.insertFinalNewline": true,
29+
"typos.config": ".config/typos.toml",
2930
"conventionalCommits.emojiFormat": "emoji",
3031
"conventionalCommits.promptScopes": false
3132
}

justfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ sync-template-files:
4444

4545
# Check for spelling errors in files
4646
check-spelling:
47-
uvx typos
47+
uvx typos --config .config/typos.toml
4848

4949
# Check that URLs work
5050
check-urls:
Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
[files]
22
extend-exclude = [
33
"*.html",
4-
"*.json",
54
"*.css",
65
".quarto/*",
76
"_site/*",
8-
"_extensions/*",
9-
".coverage-report/*",
10-
"site_libs/",
117
"*.svg",
12-
# Since it has hashes
8+
"*.json",
9+
".coverage-report/*",
10+
# Has commit hashes that trigger false positives
1311
"CHANGELOG.md",
1412
]

template/.github/workflows/checks.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ jobs:
8282

8383
- name: Spell check repo
8484
uses: crate-ci/typos@cf5f1c29a8ac336af8568821ec41919923b05a83 # v1.45.1
85+
with:
86+
config: .config/typos.toml
8587

8688
check-website-build:
8789
runs-on: ubuntu-latest

template/.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,6 @@
3030
"mypy.runUsingActiveInterpreter": true,
3131
"mypy.configFile": ".config/mypy.ini",
3232
"conventionalCommits.emojiFormat": "emoji",
33-
"conventionalCommits.promptScopes": false
33+
"conventionalCommits.promptScopes": false,
34+
"typos.config": ".config/typos.toml",
3435
}

0 commit comments

Comments
 (0)