Skip to content

Commit 8169b66

Browse files
AyowoletMateusz Górski
authored and
Mateusz Górski
committed
CI: Check for whitespaces before class (pandas-dev#28489)
1 parent 552a429 commit 8169b66

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)