diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 07c99b39e83e82..ab7bd7895a596c 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -190,6 +190,10 @@ if [[ -z "$CHECK" || "$CHECK" == "patterns" ]]; then invgrep -R --include="*.rst" ".. ipython ::" doc/source RET=$(($RET + $?)) ; echo $MSG "DONE" +    MSG='Check for extra blank lines after the class definition' ; echo $MSG +    invgrep -R --include="*.py" --include="*.pyx" -E 'class.*:\n\n( )+"""' . +    RET=$(($RET + $?)) ; echo $MSG "DONE" + MSG='Check that no file in the repo contains trailing whitespaces' ; echo $MSG set -o pipefail if [[ "$AZURE" == "true" ]]; then