summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Crosley <timothy.crosley@gmail.com>2019-03-08 23:23:16 -0800
committerTimothy Crosley <timothy.crosley@gmail.com>2019-03-08 23:23:16 -0800
commitc409e8d32bb66e0f1de11b19b0e4236022fa9b51 (patch)
tree6fbf539e211cd89d9f1be5f8d3972734e703264b
parenta0d843144e8debee48c10bc094473389cc9b6994 (diff)
downloadisort-c409e8d32bb66e0f1de11b19b0e4236022fa9b51.tar.gz
Fix issue with */ style glob testsfeature/fix-skip-of-star-dir-glob
-rw-r--r--isort/settings.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/isort/settings.py b/isort/settings.py
index b1075148..336d0b1e 100644
--- a/isort/settings.py
+++ b/isort/settings.py
@@ -344,7 +344,7 @@ def should_skip(filename, config, path=''):
position = os.path.split(position[0])
for glob in config['skip_glob']:
- if fnmatch.fnmatch(filename, glob):
+ if fnmatch.fnmatch(filename, glob) or fnmatch.fnmatch('/' + filename, glob):
return True
if not (os.path.isfile(os_path) or os.path.isdir(os_path) or os.path.islink(os_path)):