diff options
-rw-r--r-- | checkers/spelling.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/checkers/spelling.py b/checkers/spelling.py index 3990633..6cc604a 100644 --- a/checkers/spelling.py +++ b/checkers/spelling.py @@ -97,7 +97,7 @@ class SpellingChecker(BaseTokenChecker): if not dict_name: return - self.ignore_list = self.config.spelling_ignore_words.split(",") + self.ignore_list = [w.strip() for w in self.config.spelling_ignore_words.split(",")] # "param" appears in docstring in param description and # "pylint" appears in comments in pylint pragmas. self.ignore_list.extend(["param", "pylint"]) |