Skip to content

Commit 0be70ee

Browse files
alimcmaster1WillAyd
authored andcommitted
CI: Format isort output for azure (#29654)
1 parent 3fc4417 commit 0be70ee

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

ci/code_checks.sh

+6-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,12 @@ if [[ -z "$CHECK" || "$CHECK" == "lint" ]]; then
105105

106106
# Imports - Check formatting using isort see setup.cfg for settings
107107
MSG='Check import format using isort ' ; echo $MSG
108-
isort --recursive --check-only pandas asv_bench
108+
ISORT_CMD="isort --recursive --check-only pandas asv_bench"
109+
if [[ "$GITHUB_ACTIONS" == "true" ]]; then
110+
eval $ISORT_CMD | awk '{print "##[error]" $0}'; RET=$(($RET + ${PIPESTATUS[0]}))
111+
else
112+
eval $ISORT_CMD
113+
fi
109114
RET=$(($RET + $?)) ; echo $MSG "DONE"
110115

111116
fi

0 commit comments

Comments
 (0)