Run isort with --profile black
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user