Skip to content

Commit 1effaf4

Browse files
author
Ayowolet
committed
CI: Check for whitespaces before class
1 parent 367670e commit 1effaf4

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
@@ -184,6 +184,11 @@ if [[ -z "$CHECK" || "$CHECK" == "patterns" ]]; then
184184
invgrep -R --include="*.rst" ".. ipython ::" doc/source
185185
RET=$(($RET + $?)) ; echo $MSG "DONE"
186186

187+
# Check for blank lines after the class definition
188+
    MSG='Check for extra blank lines after the class definition' ; echo $MSG
189+
    invgrep -R --include="*.py" --include="*.pyx" -E 'class.*:\n\n( )+"""' doc/source/
190+
    RET=$(($RET + $?)) ; echo $MSG "DONE"
191+
187192
MSG='Check that no file in the repo contains tailing whitespaces' ; echo $MSG
188193
set -o pipefail
189194
if [[ "$AZURE" == "true" ]]; then

0 commit comments

Comments
 (0)