Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed May 25, 2024
1 parent ec398ac commit aea338c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 1 addition & 5 deletions codespell_lib/_codespell.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,7 @@
import sys
import textwrap
from ctypes import wintypes
from .spellchecker import (
DetectedMisspelling,
LineTokenizer,
Spellchecker
)
from .spellchecker import DetectedMisspelling, LineTokenizer, Spellchecker
from typing import (
Any,
Dict,
Expand Down
4 changes: 3 additions & 1 deletion codespell_lib/spellchecker.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,9 @@ def check_lower_cased_word(self, word: str) -> Optional[Misspelling]:
"""
return self._misspellings.get(word)

def add_from_file(self, filename: str, *, ignore_words: Container[str] = frozenset()) -> None:
def add_from_file(
self, filename: str, *, ignore_words: Container[str] = frozenset()
) -> None:
"""Parse a codespell dictionary
:param filename: The codespell dictionary file to parse
Expand Down

0 comments on commit aea338c

Please sign in to comment.