diff options
author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2022-02-26 12:35:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-26 12:35:25 +0100 |
commit | 5bdd5034c556d2d4986a365a666e923bccef2a94 (patch) | |
tree | 01eb3f87e1bfc61b47fdb29493955f80a5dc66b9 /script | |
parent | 15040ee7c42958606ae27aa32ccbe54371b83049 (diff) | |
download | pylint-git-5bdd5034c556d2d4986a365a666e923bccef2a94.tar.gz |
Add a test to check that no old msgid or symbol are used (#5839)
* Add deleted msgid and symbol from the Python 3K+ checker and other deleted checks.
See https://github.com/PyCQA/pylint/pull/4942
Closes #5729
Co-authored-by: Daniƫl van Noord <13665637+DanielNoord@users.noreply.github.com>
Diffstat (limited to 'script')
-rw-r--r-- | script/get_unused_message_id_category.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/script/get_unused_message_id_category.py b/script/get_unused_message_id_category.py index 2741148c0..95d7ac3e3 100644 --- a/script/get_unused_message_id_category.py +++ b/script/get_unused_message_id_category.py @@ -5,6 +5,7 @@ from typing import List from pylint.checkers import initialize as initialize_checkers +from pylint.constants import DELETED_MSGID_PREFIXES from pylint.extensions import initialize as initialize_extensions from pylint.lint.pylinter import PyLinter @@ -18,6 +19,8 @@ def register_all_checkers_and_plugins(linter: "PyLinter") -> None: def get_next_code_category(message_ids: List[str]) -> int: categories = sorted({int(i[:2]) for i in message_ids}) + # We add the prefixes for deleted checkers + categories += DELETED_MSGID_PREFIXES for i in categories: if i + 1 not in categories: return i + 1 |