__init__.py 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. # Copyright (c) 2006-2015 LOGILAB S.A. (Paris, FRANCE) <contact@logilab.fr>
  2. # Copyright (c) 2008 Fabrice Douchant <Fabrice.Douchant@logilab.fr>
  3. # Copyright (c) 2009 Vincent
  4. # Copyright (c) 2009 Mads Kiilerich <mads@kiilerich.com>
  5. # Copyright (c) 2011-2014 Google, Inc.
  6. # Copyright (c) 2012 David Pursehouse <david.pursehouse@sonymobile.com>
  7. # Copyright (c) 2012 Kevin Jing Qiu <kevin.jing.qiu@gmail.com>
  8. # Copyright (c) 2012 FELD Boris <lothiraldan@gmail.com>
  9. # Copyright (c) 2012 JT Olds <jtolds@xnet5.com>
  10. # Copyright (c) 2014-2020 Claudiu Popa <pcmanticore@gmail.com>
  11. # Copyright (c) 2014-2015 Michal Nowikowski <godfryd@gmail.com>
  12. # Copyright (c) 2014 Brett Cannon <brett@python.org>
  13. # Copyright (c) 2014 Alexandru Coman <fcoman@bitdefender.com>
  14. # Copyright (c) 2014 Daniel Harding <dharding@living180.net>
  15. # Copyright (c) 2014 Arun Persaud <arun@nubati.net>
  16. # Copyright (c) 2014 Dan Goldsmith <djgoldsmith@googlemail.com>
  17. # Copyright (c) 2015-2016 Florian Bruhin <me@the-compiler.org>
  18. # Copyright (c) 2015 Aru Sahni <arusahni@gmail.com>
  19. # Copyright (c) 2015 Steven Myint <hg@stevenmyint.com>
  20. # Copyright (c) 2015 Simu Toni <simutoni@gmail.com>
  21. # Copyright (c) 2015 Mihai Balint <balint.mihai@gmail.com>
  22. # Copyright (c) 2015 Ionel Cristian Maries <contact@ionelmc.ro>
  23. # Copyright (c) 2016-2017 Łukasz Rogalski <rogalski.91@gmail.com>
  24. # Copyright (c) 2016 Glenn Matthews <glenn@e-dad.net>
  25. # Copyright (c) 2016 Alan Evangelista <alanoe@linux.vnet.ibm.com>
  26. # Copyright (c) 2017-2019 hippo91 <guillaume.peillex@gmail.com>
  27. # Copyright (c) 2017-2018 Ville Skyttä <ville.skytta@iki.fi>
  28. # Copyright (c) 2017 Daniel Miller <millerdev@gmail.com>
  29. # Copyright (c) 2017 Roman Ivanov <me@roivanov.com>
  30. # Copyright (c) 2017 Ned Batchelder <ned@nedbatchelder.com>
  31. # Copyright (c) 2018-2021 Pierre Sassoulas <pierre.sassoulas@gmail.com>
  32. # Copyright (c) 2018, 2020 Anthony Sottile <asottile@umich.edu>
  33. # Copyright (c) 2018-2019 Nick Drozd <nicholasdrozd@gmail.com>
  34. # Copyright (c) 2018 Matus Valo <matusvalo@users.noreply.github.com>
  35. # Copyright (c) 2018 Lucas Cimon <lucas.cimon@gmail.com>
  36. # Copyright (c) 2018 ssolanki <sushobhitsolanki@gmail.com>
  37. # Copyright (c) 2018 Randall Leeds <randall@bleeds.info>
  38. # Copyright (c) 2018 Mike Frysinger <vapier@gmail.com>
  39. # Copyright (c) 2018 Sushobhit <31987769+sushobhit27@users.noreply.github.com>
  40. # Copyright (c) 2018 Jason Owen <jason.a.owen@gmail.com>
  41. # Copyright (c) 2018 Gary Tyler McLeod <mail@garytyler.com>
  42. # Copyright (c) 2018 Yuval Langer <yuvallanger@mail.tau.ac.il>
  43. # Copyright (c) 2018 kapsh <kapsh@kap.sh>
  44. # Copyright (c) 2019 syutbai <syutbai@gmail.com>
  45. # Copyright (c) 2019 Thomas Hisch <t.hisch@gmail.com>
  46. # Copyright (c) 2019 Hugues <hugues.bruant@affirm.com>
  47. # Copyright (c) 2019 Janne Rönkkö <jannero@users.noreply.github.com>
  48. # Copyright (c) 2019 Ashley Whetter <ashley@awhetter.co.uk>
  49. # Copyright (c) 2019 Trevor Bekolay <tbekolay@gmail.com>
  50. # Copyright (c) 2019 Hugo van Kemenade <hugovk@users.noreply.github.com>
  51. # Copyright (c) 2019 Robert Schweizer <robert_schweizer@gmx.de>
  52. # Copyright (c) 2019 Andres Perez Hortal <andresperezcba@gmail.com>
  53. # Copyright (c) 2019 Peter Kolbus <peter.kolbus@gmail.com>
  54. # Copyright (c) 2019 Nicolas Dickreuter <dickreuter@gmail.com>
  55. # Copyright (c) 2020 Frank Harrison <frank@doublethefish.com>
  56. # Copyright (c) 2020 anubh-v <anubhav@u.nus.edu>
  57. # Copyright (c) 2021 Marc Mueller <30130371+cdce8p@users.noreply.github.com>
  58. # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
  59. # For details: https://github.com/PyCQA/pylint/blob/main/LICENSE
  60. """ pylint [options] modules_or_packages
  61. Check that module(s) satisfy a coding standard (and more !).
  62. pylint --help
  63. Display this help message and exit.
  64. pylint --help-msg <msg-id>[,<msg-id>]
  65. Display help messages about given message identifiers and exit.
  66. """
  67. import sys
  68. from pylint.lint.parallel import check_parallel
  69. from pylint.lint.pylinter import PyLinter
  70. from pylint.lint.report_functions import (
  71. report_messages_by_module_stats,
  72. report_messages_stats,
  73. report_total_messages_stats,
  74. )
  75. from pylint.lint.run import Run
  76. from pylint.lint.utils import (
  77. ArgumentPreprocessingError,
  78. _patch_sys_path,
  79. fix_import_path,
  80. preprocess_options,
  81. )
  82. __all__ = [
  83. "check_parallel",
  84. "PyLinter",
  85. "report_messages_by_module_stats",
  86. "report_messages_stats",
  87. "report_total_messages_stats",
  88. "Run",
  89. "ArgumentPreprocessingError",
  90. "_patch_sys_path",
  91. "fix_import_path",
  92. "preprocess_options",
  93. ]
  94. if __name__ == "__main__":
  95. Run(sys.argv[1:])