Compare commits
2 Commits
c4cac19501
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a033dfbfee | ||
|
|
44b129951e |
1
_reformat-common.sh
Symbolic link
1
_reformat-common.sh
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
_reformat-common.bash
|
||||||
@@ -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