diff options
author | Eli Fine <ubuntu@ip-172-31-89-59.ec2.internal> | 2021-04-09 14:53:40 +0000 |
---|---|---|
committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-04-10 08:36:29 +0200 |
commit | c6e7d169b979806a67db8d31280589a5d1834f4b (patch) | |
tree | a07383f65e43ef0d000ace04764ab510f91be6c7 | |
parent | 04215ad5e0e0931494bd5c58cc09c6cca0ee2b44 (diff) | |
download | pylint-git-c6e7d169b979806a67db8d31280589a5d1834f4b.tar.gz |
removing extraneous line and adding clarifying comment
-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", |