diff options
author | Marc Mueller <30130371+cdce8p@users.noreply.github.com> | 2021-02-23 19:09:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-23 19:09:24 +0100 |
commit | 646be6db86f74b73acd3ccfc1c373efdda438346 (patch) | |
tree | 6fa56db12c8e846abae5525a5a8709c9f544c2d7 /pylint/utils/utils.py | |
parent | 80da123a78ebd542f4feac8cd9a4d28ab9e31180 (diff) | |
download | pylint-git-646be6db86f74b73acd3ccfc1c373efdda438346.tar.gz |
Fix benchmark test (#4138)
* Don't check directories starting with '.' when using register_plugins
* CI - Add benchmark job
Diffstat (limited to 'pylint/utils/utils.py')
-rw-r--r-- | pylint/utils/utils.py | 6 |
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( |