__init__.py 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # Copyright (c) 2006, 2010, 2012-2014 LOGILAB S.A. (Paris, FRANCE) <contact@logilab.fr>
  2. # Copyright (c) 2012-2014 Google, Inc.
  3. # Copyright (c) 2012 FELD Boris <lothiraldan@gmail.com>
  4. # Copyright (c) 2014-2020 Claudiu Popa <pcmanticore@gmail.com>
  5. # Copyright (c) 2014 Brett Cannon <brett@python.org>
  6. # Copyright (c) 2014 Ricardo Gemignani <ricardo.gemignani@gmail.com>
  7. # Copyright (c) 2014 Arun Persaud <arun@nubati.net>
  8. # Copyright (c) 2015 Simu Toni <simutoni@gmail.com>
  9. # Copyright (c) 2015 Ionel Cristian Maries <contact@ionelmc.ro>
  10. # Copyright (c) 2017 Kári Tristan Helgason <kthelgason@gmail.com>
  11. # Copyright (c) 2018 ssolanki <sushobhitsolanki@gmail.com>
  12. # Copyright (c) 2018 Sushobhit <31987769+sushobhit27@users.noreply.github.com>
  13. # Copyright (c) 2018 Ville Skyttä <ville.skytta@iki.fi>
  14. # Copyright (c) 2019, 2021 Pierre Sassoulas <pierre.sassoulas@gmail.com>
  15. # Copyright (c) 2020 hippo91 <guillaume.peillex@gmail.com>
  16. # Copyright (c) 2020 Anthony Sottile <asottile@umich.edu>
  17. # Copyright (c) 2021 Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
  18. # Copyright (c) 2021 Marc Mueller <30130371+cdce8p@users.noreply.github.com>
  19. # Copyright (c) 2021 ruro <ruro.ruro@ya.ru>
  20. # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
  21. # For details: https://github.com/PyCQA/pylint/blob/main/LICENSE
  22. """utilities methods and classes for reporters"""
  23. from typing import TYPE_CHECKING
  24. from pylint import utils
  25. from pylint.reporters.base_reporter import BaseReporter
  26. from pylint.reporters.collecting_reporter import CollectingReporter
  27. from pylint.reporters.json_reporter import JSONReporter
  28. from pylint.reporters.multi_reporter import MultiReporter
  29. from pylint.reporters.reports_handler_mix_in import ReportsHandlerMixIn
  30. if TYPE_CHECKING:
  31. from pylint.lint.pylinter import PyLinter
  32. def initialize(linter: "PyLinter") -> None:
  33. """initialize linter with reporters in this package"""
  34. utils.register_plugins(linter, __path__[0]) # type: ignore[name-defined] # Fixed in https://github.com/python/mypy/pull/9454
  35. __all__ = [
  36. "BaseReporter",
  37. "ReportsHandlerMixIn",
  38. "JSONReporter",
  39. "CollectingReporter",
  40. "MultiReporter",
  41. ]