Skip to content

Commit 46b74d7

Browse files
committed
chore(typos): 🔧 exclude hexadecimal identifiers from spell checking
1 parent af0fe9b commit 46b74d7

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,5 +115,8 @@ filterwarnings = [
115115
"ignore::DeprecationWarning:rdflib.plugins.parsers.jsonld",
116116
]
117117

118+
[tool.typos.default]
119+
extend-ignore-re = ["[0-9a-f]{7,40}"] # Ignore long hexadecimal strings, which are often used as identifiers (e.g., Git commit hashes, UUIDs) and are not typically misspelled words.
120+
118121
[tool.typos.files]
119122
extend-exclude = ["tests/data", "docs/diagrams", "*.json", "*.html", "*__init__.py"]

0 commit comments

Comments
 (0)