Commit 0c4af8b8 authored by jrgissing's avatar jrgissing
Browse files

spelling: attempt add file paths to false positives

parent af810343
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -312,3 +312,6 @@ if spelling_spec:

    spelling_lang='en_US'
    spelling_word_list_filename='false_positives.txt'

    from custom_filters import PathFilter
    spelling_filters = [PathFilter]
+9 −0
Original line number Diff line number Diff line
class PathFilter(Filter):
    r"""Filter skipping over simple file paths
    """
    _DOC_ERRORS = ["zA"]
    _pattern = re.compile(r"\/[^\s].*")
    def _skip(self,word):
        if self._pattern.match(word):
            return True
        return False