pre-commit: Add tutorial exceptions for IDs and typos 1.48.0

This commit is contained in:
Alex Turbov
2026-07-07 04:50:27 +04:00
committed by Brad King
parent f0c892d572
commit 8768b1f1e1
2 changed files with 6 additions and 1 deletions

View File

@@ -113,7 +113,7 @@ repos:
# NOTE See BUG https://github.com/crate-ci/typos/issues/390 # NOTE See BUG https://github.com/crate-ci/typos/issues/390
- repo: https://github.com/adhtruong/mirrors-typos - repo: https://github.com/adhtruong/mirrors-typos
rev: v1.45.2 rev: v1.48.0
hooks: hooks:
- id: typos - id: typos
# NOTE Override hook's default args to prevent automatic # NOTE Override hook's default args to prevent automatic

View File

@@ -99,4 +99,9 @@ extend-ignore-re = [
# NOTE Allow to mark block of text to exclude from spellchecking as RST comments # NOTE Allow to mark block of text to exclude from spellchecking as RST comments
"(?s)\\.\\.\\s+(NOQA|noqa):? spellcheck(: *|=| +)off.*?\\n\\.\\.\\s+(NOQA|noqa):? spellcheck(: *|=| +)on" "(?s)\\.\\.\\s+(NOQA|noqa):? spellcheck(: *|=| +)off.*?\\n\\.\\.\\s+(NOQA|noqa):? spellcheck(: *|=| +)on"
] ]
[type.rst.extend-identifiers]
# CMake build options in the `Help/guide/tutorial/Configuration and Cache Variables.rst`
DCOMPRESSION_SOFTWARE_USE_ZLIB = "DCOMPRESSION_SOFTWARE_USE_ZLIB"
DCOMPRESSION_SOFTWARE_USE_ZSTD = "DCOMPRESSION_SOFTWARE_USE_ZSTD"
# END Type-specific settings # END Type-specific settings