Teach it about isort in addition to black

The design of this is starting to break down now and will need to be reworked
a bit.
This commit is contained in:
Michael Wolf
2021-03-15 10:37:38 -06:00
parent d59ac38a5b
commit 2eb0d7b9b0
2 changed files with 12 additions and 3 deletions

View File

@@ -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)
out=$(pipx run black $file 2>/dev/null && pipx run isort $file 2>/dev/null)
retval="$?"
success_retval=0
else