Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions template/.typos.toml → .config/typos.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
[files]
extend-exclude = [
"*.html",
"*.json",
"*.css",
".quarto/*",
"_site/*",
"_extensions/*",
".coverage-report/*",
"site_libs/",
"*.svg",
# Since it has hashes
# Has commit hashes that trigger false positives
"CHANGELOG.md",
]
2 changes: 2 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ jobs:

- name: Spell check repo
uses: crate-ci/typos@bee27e3a4fd1ea2111cf90ab89cd076c870fce14 # v1.48.0
with:
config: .config/typos.toml

check-website-build:
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ repos:
rev: v1.47.2
hooks:
- id: typos
args: [--config, .config/typos.toml, --force-exclude]

- repo: https://github.com/rvben/rumdl-pre-commit
rev: v0.2.26
Expand Down
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"*.qmd.jinja": "jinja-md"
},
"files.insertFinalNewline": true,
"typos.config": ".config/typos.toml",
"conventionalCommits.emojiFormat": "emoji",
"conventionalCommits.promptScopes": false
}
2 changes: 1 addition & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ sync-template-files:

# Check for spelling errors in files
check-spelling:
uvx typos
uvx typos --config .config/typos.toml

# Check that URLs work
check-urls:
Expand Down
8 changes: 3 additions & 5 deletions .typos.toml → template/.config/typos.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
[files]
extend-exclude = [
"*.html",
"*.json",
"*.css",
".quarto/*",
"_site/*",
"_extensions/*",
".coverage-report/*",
"site_libs/",
"*.svg",
# Since it has hashes
"*.json",
".coverage-report/*",
# Has commit hashes that trigger false positives
"CHANGELOG.md",
]
2 changes: 2 additions & 0 deletions template/.github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ jobs:

- name: Spell check repo
uses: crate-ci/typos@cf5f1c29a8ac336af8568821ec41919923b05a83 # v1.45.1
with:
config: .config/typos.toml

check-website-build:
runs-on: ubuntu-latest
Expand Down
3 changes: 2 additions & 1 deletion template/.vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,6 @@
"mypy.runUsingActiveInterpreter": true,
"mypy.configFile": ".config/mypy.ini",
"conventionalCommits.emojiFormat": "emoji",
"conventionalCommits.promptScopes": false
"conventionalCommits.promptScopes": false,
"typos.config": ".config/typos.toml",
}
2 changes: 1 addition & 1 deletion template/justfile.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ check-security:

# Check for spelling errors in files
check-spelling:
uvx typos
uvx typos --config .config/typos.toml

# Install lychee from https://lychee.cli.rs/guides/getting-started/
# Check that URLs work
Expand Down
Loading