__init__.py 585 B

1234567891011121314151617181920
  1. # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
  2. # For details: https://github.com/pylint-dev/pylint/blob/main/LICENSE
  3. # Copyright (c) https://github.com/pylint-dev/pylint/blob/main/CONTRIBUTORS.txt
  4. from __future__ import annotations
  5. from typing import TYPE_CHECKING
  6. from pylint.utils import register_plugins
  7. if TYPE_CHECKING:
  8. from pylint.lint import PyLinter
  9. def initialize(linter: PyLinter) -> None:
  10. """Initialize linter with checkers in the extensions' directory."""
  11. register_plugins(linter, __path__[0])
  12. __all__ = ["initialize"]