Skip to content

Commit 0c8bd24

Browse files
committed
add ci-check for python2 new style classes
1 parent bfd3d92 commit 0c8bd24

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
@@ -140,6 +140,10 @@ if [[ -z "$CHECK" || "$CHECK" == "patterns" ]]; then
140140
invgrep -R --include="*.py" --include="*.pyx" -E "(DEPRECATED|DEPRECATE|Deprecated)(:|,|\.)" pandas
141141
RET=$(($RET + $?)) ; echo $MSG "DONE"
142142

143+
MSG='Check for python2 new-style classes' ; echo $MSG
144+
invgrep -R --include="*.py" -E "class\s\S*\(object\):" pandas scripts
145+
RET=$(($RET + $?)) ; echo $MSG "DONE"
146+
143147
MSG='Check for backticks incorrectly rendering because of missing spaces' ; echo $MSG
144148
invgrep -R --include="*.rst" -E "[a-zA-Z0-9]\`\`?[a-zA-Z0-9]" doc/source/
145149
RET=$(($RET + $?)) ; echo $MSG "DONE"

0 commit comments

Comments
 (0)