Skip to content

Commit da6998b

Browse files
ShaharNavehAlexKirko
authored andcommitted
CI: Added unwanted patterns test case (pandas-dev#30099)
1 parent 90a0fe8 commit da6998b

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)