diff options
-rw-r--r-- | pylint/checkers/spelling.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pylint/checkers/spelling.py b/pylint/checkers/spelling.py index b08ec772a..341352d38 100644 --- a/pylint/checkers/spelling.py +++ b/pylint/checkers/spelling.py @@ -317,7 +317,6 @@ class SpellingChecker(BaseTokenChecker): WordsWithUnderscores, CamelCasedWord, SphinxDirectives, - # BlackDirectives ], ) self.initialized = True @@ -334,6 +333,7 @@ class SpellingChecker(BaseTokenChecker): initial_space = 0 if line.strip().startswith("#") and "docstring" not in msgid: line = line.strip()[1:] + # A ``Filter`` cannot determine if the directive is at the beginning of a line, nor determine if a colon is present or not (``pyenchant`` strips trailing colons). So implementing this here. for iter_directive in ( "fmt: on", "fmt: off", |