Skip to content

Commit e891e6d

Browse files
alimcmaster1proost
authored andcommitted
CI: Format isort output for azure (pandas-dev#29654)
1 parent cf5a14a commit e891e6d

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)