summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Crosley <timothy.crosley@gmail.com>2019-02-23 16:04:42 -0800
committerTimothy Crosley <timothy.crosley@gmail.com>2019-02-23 16:04:42 -0800
commit7e4909665b611798e370d1466d64ef137c89dc22 (patch)
tree9c85f12d7c63924812c3925263cb9d5aedf6146a
parent749171ed519d43445ce4d4306c0d5ffb2b400d97 (diff)
downloadisort-feature/fix-issue-582.tar.gz
Fix not skip not being honoredfeature/fix-issue-582
-rw-r--r--isort/main.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/isort/main.py b/isort/main.py
index a584c226..a47ae932 100644
--- a/isort/main.py
+++ b/isort/main.py
@@ -92,6 +92,9 @@ def sort_imports(file_name, **arguments):
def iter_source_code(paths, config, skipped):
"""Iterate over all Python source files defined in paths."""
+ if 'not_skip' in config:
+ config['skip'] = list(set(config['skip']).difference(config['not_skip']))
+
for path in paths:
if os.path.isdir(path):
if should_skip(path, config, os.getcwd()):