From 56a0692b6820ed85fa7976a2e28da80d1254a712 Mon Sep 17 00:00:00 2001 From: xavier2k6 <42386382+xavier2k6@users.noreply.github.com> Date: Sun, 6 Oct 2024 09:49:30 +0100 Subject: [PATCH] GHA CI: Update pre-commit-config workflow * Bumped numerous revisions * Removed obsolete exclusions (files/folders were removed previously) * Implement fix/workaround for "false positives" (typos/codespell) PR #21460. --- .github/workflows/helper/pre-commit/.typos.toml | 2 ++ .pre-commit-config.yaml | 13 ++++--------- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/.github/workflows/helper/pre-commit/.typos.toml b/.github/workflows/helper/pre-commit/.typos.toml index 0f33373ad..90d6e1746 100644 --- a/.github/workflows/helper/pre-commit/.typos.toml +++ b/.github/workflows/helper/pre-commit/.typos.toml @@ -16,3 +16,5 @@ ths = "ths" [default.extend-words] BA = "BA" helo = "helo" +Pn = "Pn" +UIU = "UIU" diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 504c83ada..a4c84ea2d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 @@ -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/.* @@ -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) @@ -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/.*