__init__.py 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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 _augment_sys_path, augmented_sys_path
  24. __all__ = [
  25. "ArgumentPreprocessingError",
  26. "PyLinter",
  27. "Run",
  28. "_augment_sys_path",
  29. "augmented_sys_path",
  30. "check_parallel",
  31. "discover_package_path",
  32. "load_results",
  33. "report_messages_by_module_stats",
  34. "report_messages_stats",
  35. "report_total_messages_stats",
  36. "save_results",
  37. ]
  38. if __name__ == "__main__":
  39. Run(sys.argv[1:])