Compare commits

2 Commits

Author SHA1 Message Date
Michael Wolf
a033dfbfee Run isort with --profile black 2024-09-06 14:15:25 -06:00
Michael Wolf
44b129951e Add hack to fix an incompatible change made somewhere 2024-04-03 12:13:14 -06:00
3 changed files with 3 additions and 2 deletions

1
_reformat-common.sh Symbolic link
View File

@@ -0,0 +1 @@
_reformat-common.bash

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