diff options
author | Daniƫl van Noord <13665637+DanielNoord@users.noreply.github.com> | 2021-11-04 08:17:52 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-04 08:17:52 +0100 |
commit | c532a171fadc9dc06bd97c58d490436456837031 (patch) | |
tree | d7e0b9a3a9376ff6cccd7d7ca618968b849ad980 /pylint | |
parent | de307ccf20c69ef1cfba05c000de19ec2407b5cd (diff) | |
download | pylint-git-c532a171fadc9dc06bd97c58d490436456837031.tar.gz |
Add script to generate new message category id (#5248)
Diffstat (limited to 'pylint')
-rw-r--r-- | pylint/extensions/__init__.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/pylint/extensions/__init__.py b/pylint/extensions/__init__.py index e69de29bb..96568077c 100644 --- a/pylint/extensions/__init__.py +++ b/pylint/extensions/__init__.py @@ -0,0 +1,17 @@ +# 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 + +from typing import TYPE_CHECKING + +from pylint.utils import register_plugins + +if TYPE_CHECKING: + from pylint.lint import PyLinter + + +def initialize(linter: "PyLinter") -> None: + """Initialize linter with checkers in the extensions directory""" + register_plugins(linter, __path__[0]) # type: ignore # Fixed in https://github.com/python/mypy/pull/9454 + + +__all__ = ["initialize"] |