summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdoc/exts/pylint_features.py2
-rw-r--r--pylint/__init__.py3
-rw-r--r--pylint/checkers/__init__.py2
-rw-r--r--pylint/config/__init__.py7
-rw-r--r--pylint/lint/__init__.py13
-rw-r--r--pylint/utils/__init__.py24
6 files changed, 47 insertions, 4 deletions
diff --git a/doc/exts/pylint_features.py b/doc/exts/pylint_features.py
index 4803efc9a..c70c454aa 100755
--- a/doc/exts/pylint_features.py
+++ b/doc/exts/pylint_features.py
@@ -5,7 +5,6 @@
"""Script used to generate the features file before building the actual documentation."""
import os
-import sys
import sphinx
@@ -19,7 +18,6 @@ def builder_inited(app):
)
linter = PyLinter()
linter.load_default_plugins()
-
features = os.path.join(base_path, "doc", "technical_reference", "features.rst")
with open(features, "w") as stream:
stream.write("Pylint features\n")
diff --git a/pylint/__init__.py b/pylint/__init__.py
index 8c4755818..1fd6ffd16 100644
--- a/pylint/__init__.py
+++ b/pylint/__init__.py
@@ -42,3 +42,6 @@ def run_symilar():
from pylint.checkers.similar import Run as SimilarRun
SimilarRun(sys.argv[1:])
+
+
+__all__ = ["__version__"]
diff --git a/pylint/checkers/__init__.py b/pylint/checkers/__init__.py
index 921a54a2f..bfde22b3d 100644
--- a/pylint/checkers/__init__.py
+++ b/pylint/checkers/__init__.py
@@ -64,4 +64,4 @@ def initialize(linter):
register_plugins(linter, __path__[0])
-__all__ = ("BaseChecker", "BaseTokenChecker", "initialize")
+__all__ = ["BaseChecker", "BaseTokenChecker", "initialize", "register_plugins"]
diff --git a/pylint/config/__init__.py b/pylint/config/__init__.py
index 56d23ba9f..ee061405a 100644
--- a/pylint/config/__init__.py
+++ b/pylint/config/__init__.py
@@ -46,9 +46,14 @@ from pylint.config.option_parser import OptionParser
from pylint.config.options_provider_mixin import OptionsProviderMixIn, UnsupportedAction
__all__ = [
- "UnsupportedAction",
"ConfigurationMixIn",
+ "find_default_config_files",
+ "_ManHelpFormatter",
+ "Option",
"OptionsManagerMixIn",
+ "OptionParser",
+ "OptionsProviderMixIn",
+ "UnsupportedAction",
]
USER_HOME = os.path.expanduser("~")
diff --git a/pylint/lint/__init__.py b/pylint/lint/__init__.py
index a35a57baf..7cd19fd96 100644
--- a/pylint/lint/__init__.py
+++ b/pylint/lint/__init__.py
@@ -87,5 +87,18 @@ from pylint.lint.utils import (
preprocess_options,
)
+__all__ = [
+ "check_parallel",
+ "PyLinter",
+ "report_messages_by_module_stats",
+ "report_messages_stats",
+ "report_total_messages_stats",
+ "Run",
+ "ArgumentPreprocessingError",
+ "_patch_sys_path",
+ "fix_import_path",
+ "preprocess_options",
+]
+
if __name__ == "__main__":
Run(sys.argv[1:])
diff --git a/pylint/utils/__init__.py b/pylint/utils/__init__.py
index ba7d43a34..aefb420a0 100644
--- a/pylint/utils/__init__.py
+++ b/pylint/utils/__init__.py
@@ -67,3 +67,27 @@ from pylint.utils.utils import (
safe_decode,
tokenize_module,
)
+
+__all__ = [
+ "ASTWalker",
+ "HAS_ISORT_5",
+ "IsortDriver",
+ "_basename_in_blacklist_re",
+ "_check_csv",
+ "_format_option_value",
+ "_splitstrip",
+ "_unquote",
+ "decoding_stream",
+ "deprecated_option",
+ "expand_modules",
+ "FileState",
+ "format_section",
+ "get_global_option",
+ "get_module_and_frameid",
+ "get_rst_section",
+ "get_rst_title",
+ "normalize_text",
+ "register_plugins",
+ "safe_decode",
+ "tokenize_module",
+]