summaryrefslogtreecommitdiff
path: root/pylint/utils/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'pylint/utils/utils.py')
-rw-r--r--pylint/utils/utils.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/pylint/utils/utils.py b/pylint/utils/utils.py
index 981bfb91b..35a74bfcd 100644
--- a/pylint/utils/utils.py
+++ b/pylint/utils/utils.py
@@ -248,7 +248,11 @@ def register_plugins(linter, directory):
if (
extension in PY_EXTS
and base != "__init__"
- or (not extension and os.path.isdir(os.path.join(directory, base)))
+ or (
+ not extension
+ and os.path.isdir(os.path.join(directory, base))
+ and not filename.startswith(".")
+ )
):
try:
module = modutils.load_module_from_file(