From d168cd397fb2ad8554b2318aaec08918237ba338 Mon Sep 17 00:00:00 2001 From: Alex Turbov Date: Tue, 4 Mar 2025 04:28:07 +0400 Subject: [PATCH] pre-commit: version bump `typos` hook to 1.30 + add some more ignore IDs --- .pre-commit-config.yaml | 2 +- .typos.toml | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fccc0bef8c..8b6d940ff4 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -108,7 +108,7 @@ repos: stages: [commit-msg, pre-commit] - repo: https://github.com/crate-ci/typos - rev: v1.29.4 + rev: v1.30.0 hooks: - id: typos # NOTE Override hook's default args to prevent automatic diff --git a/.typos.toml b/.typos.toml index c06745a69c..d84055e5ed 100644 --- a/.typos.toml +++ b/.typos.toml @@ -35,6 +35,7 @@ Spectre = "Spectre" [type.cmake.extend-identifiers] COMMANDs = "COMMANDs" xCOMMANDx = "xCOMMANDx" +TYPEs = "TYPEs" [type.cmake.extend-words] # Some compiler's options trigger false-positives @@ -53,6 +54,9 @@ fo = "fo" Ot = "Ot" SEH = "SEH" +[type.py.extend-identifiers] +typ = "typ" + [files] ignore-hidden = false ignore-dot = false