Skip to content

Commit a1bf64e

Browse files
Ayowoletjbrockmendel
Ayowolet
authored andcommitted
CI: Check for whitespaces before class
1 parent 8e4424f commit a1bf64e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ci/code_checks.sh

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

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

0 commit comments

Comments
 (0)