summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Crosley <timothy.crosley@gmail.com>2023-02-03 22:23:37 -0800
committerTimothy Crosley <timothy.crosley@gmail.com>2023-02-03 22:23:37 -0800
commit43b19ca0760571759ab9a2294c1dd3a4591316b0 (patch)
tree5940a62aaa560465093f67a964fa769cefed3c66
parent5a534810ef97c13a4a7bdf3a84e1dfd07f1e01f3 (diff)
downloadisort-43b19ca0760571759ab9a2294c1dd3a4591316b0.tar.gz
Reformatting
-rw-r--r--isort/main.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/isort/main.py b/isort/main.py
index da461051..7dd85e05 100644
--- a/isort/main.py
+++ b/isort/main.py
@@ -1089,8 +1089,8 @@ def main(argv: Optional[Sequence[str]] = None, stdin: Optional[TextIOWrapper] =
if "settings_path" not in arguments:
arguments["settings_path"] = (
arguments.get("filename", None) or os.getcwd()
- if file_names == ["-"] else
- os.path.abspath(file_names[0] if file_names else ".")
+ if file_names == ["-"]
+ else os.path.abspath(file_names[0] if file_names else ".")
)
if not os.path.isdir(arguments["settings_path"]):
arguments["settings_path"] = os.path.dirname(arguments["settings_path"])