diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2017-07-21 11:10:45 +0200 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2017-07-21 11:10:45 +0200 |
commit | 38608a6d165dced47939fbd612419fd64eacca63 (patch) | |
tree | 1cdea5dc890e564d1173867c37421801a17c59ac | |
parent | 103751c6de7bb714f8e882cec4ce166270d80a71 (diff) | |
download | pylint-git-38608a6d165dced47939fbd612419fd64eacca63.tar.gz |
Ignore patterns works on top-level files as well. Close #1384
-rw-r--r-- | pylint/utils.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pylint/utils.py b/pylint/utils.py index f6110da8f..10714e606 100644 --- a/pylint/utils.py +++ b/pylint/utils.py @@ -849,6 +849,8 @@ def expand_modules(files_or_modules, black_list, black_list_re): for something in files_or_modules: if os.path.basename(something) in black_list: continue + if _basename_in_blacklist_re(os.path.basename(something), black_list_re): + continue if exists(something): # this is a file or a directory try: |