Skip to content

Commit 1e9461f

Browse files
ShaharNavehproost
authored andcommitted
CI: added unwanted pattern test case for "foo.__class__" instead of type(foo) (pandas-dev#29937)
1 parent d9dc465 commit 1e9461f

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
@@ -194,6 +194,10 @@ if [[ -z "$CHECK" || "$CHECK" == "patterns" ]]; then
194194
invgrep -R --include="*.py" -P '# type: (?!ignore)' pandas
195195
RET=$(($RET + $?)) ; echo $MSG "DONE"
196196

197+
MSG='Check for use of foo.__class__ instead of type(foo)' ; echo $MSG
198+
invgrep -R --include=*.{py,pyx} '\.__class__' pandas
199+
RET=$(($RET + $?)) ; echo $MSG "DONE"
200+
197201
MSG='Check that no file in the repo contains trailing whitespaces' ; echo $MSG
198202
INVGREP_APPEND=" <- trailing whitespaces found"
199203
invgrep -RI --exclude=\*.{svg,c,cpp,html,js} --exclude-dir=env "\s$" *

0 commit comments

Comments
 (0)