diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b68220ef4..6129a8afa 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -60,3 +60,24 @@ repos: )$ exclude_types: - ts + + - repo: https://github.com/codespell-project/codespell + rev: v2.2.5 + hooks: + - id: codespell + name: Check spelling (codespell) + args: ["--ignore-words-list", "additionals,curren,fo,ket,superseeding,te,ths"] + exclude: | + (?x)^( + .*\.desktop | + .*\.qrc | + build-aux/.* | + Changelog | + dist/windows/installer-translations/.* | + m4/.* | + src/base/3rdparty/.* | + src/searchengine/nova3/socks.py | + src/webui/www/private/scripts/lib/.* + )$ + exclude_types: + - ts