From a033dfbfee48ae5d0654660d1c8c3ac4e4fc5284 Mon Sep 17 00:00:00 2001 From: Michael Wolf Date: Fri, 6 Sep 2024 14:15:25 -0600 Subject: [PATCH] Run isort with --profile black --- do-reformat.sh | 2 +- would-reformat.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/do-reformat.sh b/do-reformat.sh index 497d53c..28a3dbf 100755 --- a/do-reformat.sh +++ b/do-reformat.sh @@ -26,7 +26,7 @@ if [[ $file_type == "javascript" || \ retval="$?" success_retval=0 elif [[ $file_type == "python" ]]; then - out=$(pipx run black $file 2>/dev/null && pipx run isort $file 2>/dev/null) + out=$(pipx run black $file 2>/dev/null && pipx run isort --profile black $file 2>/dev/null) retval="$?" success_retval=0 elif [[ $file_type == "golang" ]] ; then diff --git a/would-reformat.sh b/would-reformat.sh index ebd39aa..b70e8d9 100755 --- a/would-reformat.sh +++ b/would-reformat.sh @@ -29,7 +29,7 @@ if [[ $file_type = "javascript" || \ syntax_error_retval=2 elif [[ $file_type == "python" ]]; then - out=$(pipx run isort --check $file 2>/dev/null) + out=$(pipx run isort --profile black --check $file 2>/dev/null) isort_retval="$?" success_retval=0