diff options
author | Timothy Crosley <timothy.crosley@gmail.com> | 2019-03-08 23:23:16 -0800 |
---|---|---|
committer | Timothy Crosley <timothy.crosley@gmail.com> | 2019-03-09 22:08:29 -0800 |
commit | 15b0f6838f5a321916d694bd5de79f84ada1f503 (patch) | |
tree | be03359bc30bf5da8bd6cd9db7487f4263af2bdb /isort | |
parent | 3396ee7bb21df77ed1d5d1cbf1bff693fcc95c31 (diff) | |
download | isort-15b0f6838f5a321916d694bd5de79f84ada1f503.tar.gz |
Fix issue with */ style glob tests
Diffstat (limited to 'isort')
-rw-r--r-- | isort/settings.py | 2 |
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)): |