Skip to content

Commit f302e46

Browse files
kikkomepEttoreM
authored andcommitted
chore(typos): 🔧 exclude hexadecimal identifiers from spell checking
1 parent 8df288d commit f302e46

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,6 +115,9 @@ 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"]
120123

0 commit comments

Comments
 (0)