Skip to content

Commit 0f22b77

Browse files
committed
add check to code_checks.sh
1 parent e2416a0 commit 0f22b77

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ci/code_checks.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,8 @@ if [[ -z "$CHECK" || "$CHECK" == "patterns" ]]; then
148148
invgrep -R --include="*.py" --include="*.pyx" -E "(DEPRECATED|DEPRECATE|Deprecated)(:|,|\.)" pandas
149149
RET=$(($RET + $?)) ; echo $MSG "DONE"
150150

151-
MSG='Check for python2 new-style classes' ; echo $MSG
152-
invgrep -R --include="*.py" --include="*.pyx" -E "class\s\S*\(object\):" pandas scripts
151+
MSG='Check for python2 new-style classes and for for empty parenteses' ; echo $MSG
152+
invgrep -R --include="*.py" --include="*.pyx" -E "class\s\S*\((object)?\):" pandas scripts
153153
RET=$(($RET + $?)) ; echo $MSG "DONE"
154154

155155
MSG='Check for backticks incorrectly rendering because of missing spaces' ; echo $MSG

0 commit comments

Comments
 (0)