Skip to content

Commit f1dfa20

Browse files
author
MomIsBestFriend
committed
CI: Added unwanted patterns test case
1 parent 1593023 commit f1dfa20

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
@@ -200,6 +200,10 @@ if [[ -z "$CHECK" || "$CHECK" == "patterns" ]]; then
200200
invgrep -R --include="*.py" --include="*.pyx" -E 'class.*:\n\n( )+"""' .
201201
RET=$(($RET + $?)) ; echo $MSG "DONE"
202202

203+
MSG='Check for use of {foo!r} instead of {repr(foo)}' ; echo $MSG
204+
invgrep -R --include=*.{py,pyx} '!r}' pandas
205+
RET=$(($RET + $?)) ; echo $MSG "DONE"
206+
203207
MSG='Check for use of comment-based annotation syntax' ; echo $MSG
204208
invgrep -R --include="*.py" -P '# type: (?!ignore)' pandas
205209
RET=$(($RET + $?)) ; echo $MSG "DONE"

0 commit comments

Comments
 (0)