diff options
-rw-r--r-- | checkers/spelling.py | 4 | ||||
-rw-r--r-- | test/test_func.py | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/checkers/spelling.py b/checkers/spelling.py index ec0a147..249a220 100644 --- a/checkers/spelling.py +++ b/checkers/spelling.py @@ -51,10 +51,10 @@ class SpellingInCommentsChecker(BaseTokenChecker): __implements__ = (ITokenChecker, IAstroidChecker) name = 'spelling' msgs = { - 'C8402': ('Wrong spelling of a word \'%s\' in a comment:\n%s\n%s\nDid you mean: \'%s\'?', + 'C0401': ('Wrong spelling of a word \'%s\' in a comment:\n%s\n%s\nDid you mean: \'%s\'?', 'wrong-spelling-in-comment', 'Used when a word in comment is not spelled correctly.'), - 'C8403': ('Wrong spelling of a word \'%s\' in a docstring:\n%s\n%s\nDid you mean: \'%s\'?', + 'C0402': ('Wrong spelling of a word \'%s\' in a docstring:\n%s\n%s\nDid you mean: \'%s\'?', 'wrong-spelling-in-docstring', 'Used when a word in docstring is not spelled correctly.'), } diff --git a/test/test_func.py b/test/test_func.py index 2d573c2..acd5c4a 100644 --- a/test/test_func.py +++ b/test/test_func.py @@ -59,6 +59,8 @@ class TestTests(testlib.TestCase): not_tested -= self.PORTED if PY3K: not_tested.remove('W0403') # relative-import + not_tested.remove("C0401") # requires optional lib python-enchant for spell checking + not_tested.remove("C0402") # requires optional lib python-enchant for spell checking self.assertFalse(not_tested) |