diff options
author | Timothy Edmund Crosley <timothy.crosley@gmail.com> | 2016-03-28 02:15:41 -0700 |
---|---|---|
committer | Timothy Edmund Crosley <timothy.crosley@gmail.com> | 2016-03-28 02:15:41 -0700 |
commit | f9fb33d6437e7ac20170990dd6a35642de4827a1 (patch) | |
tree | 2c1f9fccc94efb61e8f53fa4ef6d7e7d47657379 | |
parent | ee5921e2ded0963d462333486886f00f9e55dffe (diff) | |
parent | da7a41ee64e88fde406ad935d59039178227aa55 (diff) | |
download | isort-f9fb33d6437e7ac20170990dd6a35642de4827a1.tar.gz |
Merge pull request #403 from timothycrosley/feature/fix-issue-394
Fix skipping code
-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 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) |