summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Malehorn <bmalehorn@gmail.com>2022-02-19 02:47:51 +0000
committerGitHub <noreply@github.com>2022-02-19 02:47:51 +0000
commit1e22ced0ed25a11b4c95733af48e9402e3c9ce2b (patch)
tree7c98c2a6861601ec77db0678d9f5825277dff892
parentffe6d76ec86067620738f0c4fdcf44a0cb285c89 (diff)
downloadisort-1e22ced0ed25a11b4c95733af48e9402e3c9ce2b.tar.gz
fix too-long line
-rw-r--r--isort/settings.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/isort/settings.py b/isort/settings.py
index 24bfa7ea..e0f62747 100644
--- a/isort/settings.py
+++ b/isort/settings.py
@@ -637,7 +637,11 @@ class Config(_Config):
# git_ls_files are good files you should parse. If you're not in the allow list, skip.
- if git_folder and not file_path.is_dir() and str(file_path.resolve()) not in self.git_ls_files[git_folder]:
+ if (
+ git_folder
+ and not file_path.is_dir()
+ and str(file_path.resolve()) not in self.git_ls_files[git_folder]
+ ):
return True
return False