Browse Source

pre-commit: version bump `typos` hook to 1.30 + add some more ignore IDs

Alex Turbov 9 months ago
parent
commit
d168cd397f
2 changed files with 5 additions and 1 deletions
  1. 1 1
      .pre-commit-config.yaml
  2. 4 0
      .typos.toml

+ 1 - 1
.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

+ 4 - 0
.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