Skip to content

Commit a562c22

Browse files
Ayowoletjreback
authored andcommitted
CI: Check for whitespaces before class (#28489)
1 parent 0cbf399 commit a562c22

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ci/code_checks.sh

+4
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,10 @@ if [[ -z "$CHECK" || "$CHECK" == "patterns" ]]; then
190190
invgrep -R --include="*.rst" ".. ipython ::" doc/source
191191
RET=$(($RET + $?)) ; echo $MSG "DONE"
192192

193+
    MSG='Check for extra blank lines after the class definition' ; echo $MSG
194+
    invgrep -R --include="*.py" --include="*.pyx" -E 'class.*:\n\n( )+"""' .
195+
    RET=$(($RET + $?)) ; echo $MSG "DONE"
196+
193197
MSG='Check that no file in the repo contains trailing whitespaces' ; echo $MSG
194198
set -o pipefail
195199
if [[ "$AZURE" == "true" ]]; then

0 commit comments

Comments
 (0)