MCPcopy Create free account
hub / github.com/codespell-project/codespell / match

Method match

codespell_lib/_codespell.py:174–175  ·  view source on GitHub ↗
(self, filename: str)

Source from the content-addressed store, hash-verified

172 self.pattern_list: list[str] = pattern
173
174 def match(self, filename: str) -> bool:
175 return any(fnmatch.fnmatch(filename, p) for p in self.pattern_list)
176
177
178class TermColors:

Callers 2

mainFunction · 0.95
_check_err_repFunction · 0.80

Calls

no outgoing calls

Tested by 1

_check_err_repFunction · 0.64