Skip to content

Commit

Permalink
GHA CI: Update pre-commit-config workflow
Browse files Browse the repository at this point in the history
* Bumped numerous revisions
* Removed obsolete exclusions (files/folders were removed previously)
* Implement fix/workaround for "false positives" (typos/codespell)

PR #21460.
  • Loading branch information
xavier2k6 authored Oct 6, 2024
1 parent dfa4eeb commit 56a0692
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/helper/pre-commit/.typos.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,5 @@ ths = "ths"
[default.extend-words]
BA = "BA"
helo = "helo"
Pn = "Pn"
UIU = "UIU"
13 changes: 4 additions & 9 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ repos:
- ts

- repo: https://github.com/pre-commit/pre-commit-hooks.git
rev: v4.5.0
rev: v4.6.0
hooks:
- id: check-json
name: Check JSON files
Expand Down Expand Up @@ -63,19 +63,17 @@ repos:
- ts

- repo: https://github.com/codespell-project/codespell.git
rev: v2.2.6
rev: v2.3.0
hooks:
- id: codespell
name: Check spelling (codespell)
args: ["--ignore-words-list", "additionals,curren,fo,ist,ket,searchin,superseeding,te,ths"]
args: ["--ignore-words-list", "additionals,categor,curren,fo,ist,ket,notin,searchin,sectionin,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/.*
Expand All @@ -84,7 +82,7 @@ repos:
- ts

- repo: https://github.com/crate-ci/typos.git
rev: v1.16.18
rev: v1.25.0
hooks:
- id: typos
name: Check spelling (typos)
Expand All @@ -95,11 +93,8 @@ repos:
.*\.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/.*
Expand Down

0 comments on commit 56a0692

Please sign in to comment.