summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Crosley <timothy.crosley@gmail.com>2016-03-28 02:09:52 -0700
committerTimothy Crosley <timothy.crosley@gmail.com>2016-03-28 02:09:52 -0700
commitda7a41ee64e88fde406ad935d59039178227aa55 (patch)
tree2c1f9fccc94efb61e8f53fa4ef6d7e7d47657379
parentee5921e2ded0963d462333486886f00f9e55dffe (diff)
downloadisort-feature/fix-issue-394.tar.gz
Fix skipping codefeature/fix-issue-394
-rw-r--r--isort/settings.py2
1 files changed, 1 insertions, 1 deletions
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)