From da7a41ee64e88fde406ad935d59039178227aa55 Mon Sep 17 00:00:00 2001 From: Timothy Crosley Date: Mon, 28 Mar 2016 02:09:52 -0700 Subject: Fix skipping code --- isort/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/isort/settings.py b/isort/settings.py index 5aa6cb1d..75718d95 100644 --- a/isort/settings.py +++ b/isort/settings.py @@ -202,7 +202,7 @@ def _get_config_data(file_path, sections): def should_skip(filename, config, path='/'): """Returns True if the file should be skipped based on the passed in settings.""" for skip_path in config['skip']: - if os.path.join(path, filename).endswith(skip_path): + if os.path.join(path, filename).endswith('/' + skip_path.lstrip('/')): return True position = os.path.split(filename) -- cgit v1.2.1