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-09 22:08:29 -0800
commit15b0f6838f5a321916d694bd5de79f84ada1f503 (patch)
treebe03359bc30bf5da8bd6cd9db7487f4263af2bdb
parent3396ee7bb21df77ed1d5d1cbf1bff693fcc95c31 (diff)
downloadisort-15b0f6838f5a321916d694bd5de79f84ada1f503.tar.gz
Fix issue with */ style glob tests
-rw-r--r--isort/settings.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/isort/settings.py b/isort/settings.py
index 6504be53..525c1315 100644
--- a/isort/settings.py
+++ b/isort/settings.py
@@ -402,7 +402,7 @@ def file_should_be_skipped(
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)):