summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Crosley <timothy.crosley@gmail.com>2019-03-04 22:46:30 -0800
committerTimothy Crosley <timothy.crosley@gmail.com>2019-03-04 22:46:30 -0800
commitc7422c7a86cb01e88e6b040d999c9d689a9d1d49 (patch)
tree0d07e60cab1815bcbcea0f106b8ac54e3dd2fd38
parent2c59158602f5d36d88c32cefe7e14a3963068c9e (diff)
downloadisort-c7422c7a86cb01e88e6b040d999c9d689a9d1d49.tar.gz
Fix should skip usage
-rw-r--r--.editorconfig20
-rw-r--r--isort/main.py4
2 files changed, 2 insertions, 22 deletions
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