summaryrefslogtreecommitdiff
path: root/pylint/checkers/spelling.py
diff options
context:
space:
mode:
Diffstat (limited to 'pylint/checkers/spelling.py')
-rw-r--r--pylint/checkers/spelling.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/pylint/checkers/spelling.py b/pylint/checkers/spelling.py
index 012c396de..752eb83e3 100644
--- a/pylint/checkers/spelling.py
+++ b/pylint/checkers/spelling.py
@@ -28,8 +28,7 @@
# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
# For details: https://github.com/PyCQA/pylint/blob/main/LICENSE
-"""Checker for spelling errors in comments and docstrings.
-"""
+"""Checker for spelling errors in comments and docstrings."""
import os
import re
import tokenize
@@ -147,9 +146,7 @@ class SphinxDirectives(RegExFilter):
class ForwardSlashChunker(Chunker):
- """
- This chunker allows splitting words like 'before/after' into 'before' and 'after'
- """
+ """This chunker allows splitting words like 'before/after' into 'before' and 'after'"""
def next(self):
while True:
@@ -194,7 +191,8 @@ def _strip_code_flanked_in_backticks(line: str) -> str:
"""Alter line so code flanked in backticks is ignored.
Pyenchant automatically strips backticks when parsing tokens,
- so this cannot be done at the individual filter level."""
+ so this cannot be done at the individual filter level.
+ """
def replace_code_but_leave_surrounding_characters(match_obj) -> str:
return match_obj.group(1) + match_obj.group(5)