__init__.py 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. """Pylint [options] modules_or_packages.
  5. Check that module(s) satisfy a coding standard (and more !).
  6. pylint --help
  7. Display this help message and exit.
  8. pylint --help-msg <msg-id>[,<msg-id>]
  9. Display help messages about given message identifiers and exit.
  10. """
  11. import sys
  12. from pylint.config.exceptions import ArgumentPreprocessingError
  13. from pylint.lint.caching import load_results, save_results
  14. from pylint.lint.expand_modules import discover_package_path
  15. from pylint.lint.parallel import check_parallel
  16. from pylint.lint.pylinter import PyLinter
  17. from pylint.lint.report_functions import (
  18. report_messages_by_module_stats,
  19. report_messages_stats,
  20. report_total_messages_stats,
  21. )
  22. from pylint.lint.run import Run
  23. from pylint.lint.utils import (
  24. _augment_sys_path,
  25. _patch_sys_path,
  26. augmented_sys_path,
  27. fix_import_path,
  28. )
  29. __all__ = [
  30. "check_parallel",
  31. "PyLinter",
  32. "report_messages_by_module_stats",
  33. "report_messages_stats",
  34. "report_total_messages_stats",
  35. "Run",
  36. "ArgumentPreprocessingError",
  37. "_patch_sys_path",
  38. "fix_import_path",
  39. "_augment_sys_path",
  40. "augmented_sys_path",
  41. "discover_package_path",
  42. "save_results",
  43. "load_results",
  44. ]
  45. if __name__ == "__main__":
  46. Run(sys.argv[1:])