Run isort with --profile black

This commit is contained in:
Michael Wolf
2024-09-06 14:15:25 -06:00
parent 44b129951e
commit a033dfbfee
2 changed files with 2 additions and 2 deletions

View File

@@ -26,7 +26,7 @@ if [[ $file_type == "javascript" || \
retval="$?" retval="$?"
success_retval=0 success_retval=0
elif [[ $file_type == "python" ]]; then 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="$?" retval="$?"
success_retval=0 success_retval=0
elif [[ $file_type == "golang" ]] ; then elif [[ $file_type == "golang" ]] ; then

View File

@@ -29,7 +29,7 @@ if [[ $file_type = "javascript" || \
syntax_error_retval=2 syntax_error_retval=2
elif [[ $file_type == "python" ]]; then 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="$?" isort_retval="$?"
success_retval=0 success_retval=0