__init__.py 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. # Copyright (c) 2006-2014 LOGILAB S.A. (Paris, FRANCE) <contact@logilab.fr>
  2. # Copyright (c) 2009 Vincent
  3. # Copyright (c) 2009 Mads Kiilerich <mads@kiilerich.com>
  4. # Copyright (c) 2012-2014 Google, Inc.
  5. # Copyright (c) 2014-2018, 2020 Claudiu Popa <pcmanticore@gmail.com>
  6. # Copyright (c) 2014-2015 Michal Nowikowski <godfryd@gmail.com>
  7. # Copyright (c) 2014 LCD 47 <lcd047@gmail.com>
  8. # Copyright (c) 2014 Brett Cannon <brett@python.org>
  9. # Copyright (c) 2014 Arun Persaud <arun@nubati.net>
  10. # Copyright (c) 2014 Damien Nozay <damien.nozay@gmail.com>
  11. # Copyright (c) 2015 Aru Sahni <arusahni@gmail.com>
  12. # Copyright (c) 2015 Florian Bruhin <me@the-compiler.org>
  13. # Copyright (c) 2015 Simu Toni <simutoni@gmail.com>
  14. # Copyright (c) 2015 Ionel Cristian Maries <contact@ionelmc.ro>
  15. # Copyright (c) 2016 Łukasz Rogalski <rogalski.91@gmail.com>
  16. # Copyright (c) 2016 Moises Lopez <moylop260@vauxoo.com>
  17. # Copyright (c) 2016 Glenn Matthews <glenn@e-dad.net>
  18. # Copyright (c) 2016 Glenn Matthews <glmatthe@cisco.com>
  19. # Copyright (c) 2016 Ashley Whetter <ashley@awhetter.co.uk>
  20. # Copyright (c) 2016 xmo-odoo <xmo-odoo@users.noreply.github.com>
  21. # Copyright (c) 2017-2021 Pierre Sassoulas <pierre.sassoulas@gmail.com>
  22. # Copyright (c) 2017-2018, 2020-2021 hippo91 <guillaume.peillex@gmail.com>
  23. # Copyright (c) 2017, 2020 Anthony Sottile <asottile@umich.edu>
  24. # Copyright (c) 2017-2018 Bryce Guinta <bryce.paul.guinta@gmail.com>
  25. # Copyright (c) 2017 Chris Lamb <chris@chris-lamb.co.uk>
  26. # Copyright (c) 2017 Thomas Hisch <t.hisch@gmail.com>
  27. # Copyright (c) 2017 Mikhail Fesenko <proggga@gmail.com>
  28. # Copyright (c) 2017 Craig Citro <craigcitro@gmail.com>
  29. # Copyright (c) 2017 Ville Skyttä <ville.skytta@iki.fi>
  30. # Copyright (c) 2018 ssolanki <sushobhitsolanki@gmail.com>
  31. # Copyright (c) 2018 Bryce Guinta <bryce.guinta@protonmail.com>
  32. # Copyright (c) 2018 Sushobhit <31987769+sushobhit27@users.noreply.github.com>
  33. # Copyright (c) 2018 Reverb C <reverbc@users.noreply.github.com>
  34. # Copyright (c) 2018 Nick Drozd <nicholasdrozd@gmail.com>
  35. # Copyright (c) 2020 Peter Kolbus <peter.kolbus@gmail.com>
  36. # Copyright (c) 2020 Damien Baty <damien.baty@polyconseil.fr>
  37. # Copyright (c) 2021 Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
  38. # Copyright (c) 2021 Marc Mueller <30130371+cdce8p@users.noreply.github.com>
  39. # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
  40. # For details: https://github.com/PyCQA/pylint/blob/main/LICENSE
  41. """some various utilities and helper classes, most of them used in the
  42. main pylint class
  43. """
  44. from pylint.utils.ast_walker import ASTWalker
  45. from pylint.utils.docs import print_full_documentation
  46. from pylint.utils.file_state import FileState
  47. from pylint.utils.linterstats import LinterStats, ModuleStats, merge_stats
  48. from pylint.utils.utils import (
  49. HAS_ISORT_5,
  50. IsortDriver,
  51. _check_csv,
  52. _format_option_value,
  53. _splitstrip,
  54. _unquote,
  55. decoding_stream,
  56. diff_string,
  57. format_section,
  58. get_global_option,
  59. get_module_and_frameid,
  60. get_rst_section,
  61. get_rst_title,
  62. normalize_text,
  63. register_plugins,
  64. tokenize_module,
  65. )
  66. __all__ = [
  67. "ASTWalker",
  68. "HAS_ISORT_5",
  69. "IsortDriver",
  70. "_check_csv",
  71. "_format_option_value",
  72. "_splitstrip",
  73. "_unquote",
  74. "decoding_stream",
  75. "diff_string",
  76. "FileState",
  77. "format_section",
  78. "get_global_option",
  79. "get_module_and_frameid",
  80. "get_rst_section",
  81. "get_rst_title",
  82. "normalize_text",
  83. "register_plugins",
  84. "tokenize_module",
  85. "merge_stats",
  86. "LinterStats",
  87. "ModuleStats",
  88. "print_full_documentation",
  89. ]