diff options
| author | Timothy Crosley <timothy.crosley@gmail.com> | 2016-03-28 02:09:52 -0700 |
|---|---|---|
| committer | Timothy Crosley <timothy.crosley@gmail.com> | 2016-03-28 02:09:52 -0700 |
| commit | da7a41ee64e88fde406ad935d59039178227aa55 (patch) | |
| tree | 2c1f9fccc94efb61e8f53fa4ef6d7e7d47657379 | |
| parent | ee5921e2ded0963d462333486886f00f9e55dffe (diff) | |
| download | isort-feature/fix-issue-394.tar.gz | |
Fix skipping codefeature/fix-issue-394
| -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) |
