__init__.py 546 B

1234567891011121314151617
  1. # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
  2. # For details: https://github.com/PyCQA/pylint/blob/main/LICENSE
  3. from typing import TYPE_CHECKING
  4. from pylint.utils import register_plugins
  5. if TYPE_CHECKING:
  6. from pylint.lint import PyLinter
  7. def initialize(linter: "PyLinter") -> None:
  8. """Initialize linter with checkers in the extensions directory"""
  9. register_plugins(linter, __path__[0]) # type: ignore[name-defined] # Fixed in https://github.com/python/mypy/pull/9454
  10. __all__ = ["initialize"]