GHA CI: add spelling check (typos)

This commit is contained in:
Chocobo1 2023-06-26 12:37:13 +08:00
parent 86a5ad3241
commit 88bd4f270f
No known key found for this signature in database
GPG key ID: 210D9C873253A68C
2 changed files with 43 additions and 0 deletions

View file

@ -81,3 +81,28 @@ repos:
)$
exclude_types:
- ts
- repo: https://github.com/crate-ci/typos
rev: v1.15.5
hooks:
- id: typos
name: Check spelling (typos)
args: ["--config", ".github/workflows/helper/pre-commit/.typos.toml"]
exclude: |
(?x)^(
.*\.asc |
.*\.desktop |
.*\.qrc |
\.pre-commit-config\.yaml |
build-aux/.* |
Changelog |
configure.* |
dist/windows/installer-translations/.* |
m4/.* |
src/base/3rdparty/.* |
src/searchengine/nova3/socks.py |
src/webui/www/private/scripts/lib/.*
)$
exclude_types:
- svg
- ts