Skip to content

Commit 370cd59

Browse files
author
MomIsBestFriend
committed
CI: Unwanted patterns checks.
1 parent 7b9fe51 commit 370cd59

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

ci/code_checks.sh

+8
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,14 @@ if [[ -z "$CHECK" || "$CHECK" == "patterns" ]]; then
198198
invgrep -R --include=*.{py,pyx} '\.__class__' pandas
199199
RET=$(($RET + $?)) ; echo $MSG "DONE"
200200

201+
MSG='Check for use of ("%r" % foo) instead of {repr(foo)}' ; echo $MSG
202+
invgrep -R --include=*.{py,pyx} '%r' pandas
203+
RET=$(($RET + $?)) ; echo $MSG "DONE"
204+
205+
MSG='Check for use of {foo!r} instead of {repr(foo)}' ; echo $MSG
206+
invgrep -R --include=*.{py,pyx} '!r}' pandas
207+
RET=$(($RET + $?)) ; echo $MSG "DONE"
208+
201209
MSG='Check that no file in the repo contains trailing whitespaces' ; echo $MSG
202210
INVGREP_APPEND=" <- trailing whitespaces found"
203211
invgrep -RI --exclude=\*.{svg,c,cpp,html,js} --exclude-dir=env "\s$" *

0 commit comments

Comments
 (0)