From c7422c7a86cb01e88e6b040d999c9d689a9d1d49 Mon Sep 17 00:00:00 2001 From: Timothy Crosley Date: Mon, 4 Mar 2019 22:46:30 -0800 Subject: Fix should skip usage --- .editorconfig | 20 -------------------- isort/main.py | 4 ++-- 2 files changed, 2 insertions(+), 22 deletions(-) delete mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 094bc546..00000000 --- a/.editorconfig +++ /dev/null @@ -1,20 +0,0 @@ -root = true - -[*.py] -max_line_length = 120 -indent_style = space -indent_size = 4 -known_first_party = isort -known_third_party = kate -ignore_frosted_errors = E103 -skip = build,.tox,venv -balanced_wrapping = true -not_skip = __init__.py - -[*.{rst,ini}] -indent_style = space -indent_size = 4 - -[*.yml] -indent_style = space -indent_size = 2 diff --git a/isort/main.py b/isort/main.py index e6270603..b63135e9 100644 --- a/isort/main.py +++ b/isort/main.py @@ -101,13 +101,13 @@ def iter_source_code(paths, config, skipped): path, topdown=True, followlinks=True ): for dirname in list(dirnames): - if should_skip(dirname, config, dirpath, paths): + if should_skip(dirname, config, dirpath): skipped.append(dirname) dirnames.remove(dirname) for filename in filenames: filepath = os.path.join(dirpath, filename) if is_python_file(filepath): - if should_skip(filename, config, dirpath, paths): + if should_skip(filename, config, dirpath): skipped.append(filename) else: yield filepath -- cgit v1.2.1