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

Function extract_words_iter

codespell_lib/_codespell.py:882–887  ·  view source on GitHub ↗
(
    text: str,
    word_regex: Pattern[str],
    ignore_word_regex: Optional[Pattern[str]],
)

Source from the content-addressed store, hash-verified

880
881
882def extract_words_iter(
883 text: str,
884 word_regex: Pattern[str],
885 ignore_word_regex: Optional[Pattern[str]],
886) -> list[Match[str]]:
887 return list(word_regex.finditer(_ignore_word_sub(text, ignore_word_regex)))
888
889
890def apply_uri_ignore_words(

Callers 1

parse_linesFunction · 0.85

Calls 1

_ignore_word_subFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…